Settings

Theme

The DigitalOcean Blog homepage loads 100 MB of resources

digitalocean.com

38 points by LukeLambert 3 years ago · 8 comments

Reader

chmod775 3 years ago

On first load it displays around 2KB worth of information, transferring 40MB.

Had they served me a static image containing everything I see, it would've come to around 300KB.

Maybe they should consider serving a page-sized video stream of their site to conserve bandwidth. Spin up a VM for each visitor on their server.

hnburnsy 3 years ago

So if I pay $80 per month for my 1.25 TB capped internet service, this page costs me ~0.6 cents to view assuming I use the full 1.25 TB.

LukeLambertOP 3 years ago

While looking for the blog’s RSS feed (sadly it doesn’t appear to have one anymore), I noticed that the size of the HTML alone was nearly 5 MB uncompressed. Over the course of scrolling to the bottom of the page, it loads tons of 4+ MB JSON files. The unscaled author images and numerous tracking scripts also contribute to the enormous payload. I don’t know enough about Next.js internals to say what went wrong here, but that seems ridiculous for a simple blog.

  • BeefWellington 3 years ago

    Yeah, it's definitely out there. With NoScript on it's not noticeably slow or anything and I obviously see just the main page load, which works, and makes me further question why any of the included JS is even necessary.

slimebot80 3 years ago

This is amazingly fast.

If I needed to download an app file, 100mb would take minutes.

(not defending a 100mb homepage, but still)

  • LukeLambertOP 3 years ago

    The benefit of a static site generator like Next.js is that you can cache everything at the edge. It’s not surprising to me that the initial page loads quickly (via Cloudflare’s cache). But the multi-megabyte JSON embedded in the HTML as well as the multiple JSON files loading in the background are completely unnecessary and just waste battery, memory, and data. The page could easily be 1-5% of its current size.

    • slimebot80 3 years ago

      Oh yeah of course unnecessary

      not sure why I was down voted. My point is the 100mb is very quick to download. App files are also cached around the globe and take time to download.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection