Hacker News new | ask | show | jobs
by LukeLambert 1432 days 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.
1 comments

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.