Question

Can optimized website load in 1 second after inactivity using droplet?

Posted October 28, 2021 94 views
NginxServer OptimizationLoad BalancingCDNUbuntu 18.04DigitalOcean SpacesHTMLDigitalOcean Droplets

Information:
https://whatismybrowser.com/w/KE8Y5Y4

Problem:
The website I’m hosting on a droplet takes between 1.15 and 1.5 seconds to load after inactivity. It only takes between 200 to 500 milliseconds afterward. Is there a way to consistently load the website in 1 second or less after inactivity?

What I have tried:

  • HTTP/2
  • CDN
  • Compression
  • Webp Format
  • Resizing Images
  • Load Balancing

The droplet contains a static website with 9 images - less than 300 kb.

No JavaScript functions, no database access, and no complicated code.

The website scores 100 on PageSpeed Insight and 99 on Pingdom.

I’m very new to web development, so I don’t know whether this is due to my configuration or Digital Ocean.

Could someone please help point me in the right direction?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello,

Usually, if you are getting 100 page speed score and 99 on Pingdom there should not really be any further need for optimization. Can you confirm how exactly are you testing your website speed?

Have you tried testing the website speed without the CDN enabled?

Best,
Bobby

  • Hi Bobby,

    Thanks for your reply. Thankfully, I was able to figure it out.

    The Digital Ocean nameservers and nginx image filter module were slowing down the load time. I changed the nameservers to cloudflare and stopped using responsive images.

    The load time is now around 600 milliseconds after periods of inactivity, and 250 milliseconds afterward the initial load.

    I was using the “load time” on Pingdom and “load” time on Chrome DevTools.

    Best,
    David