Hacker News new | ask | show | jobs
by schkkd 2232 days ago
That's pretty much size of a mobile app. But the thing with web apps is that they are downloaded every time and hence the outcry.
2 comments

They aren't though. You have a cache.
Facebook release multiple times a day (or they did), so the browser cache is irreLevant.
As mentioned in the blogpost, they use code splitting and bundle hashing to actually maximize usage of browser cache.
If you have code splitting many chunks will remain the same.
There's a bunch of ways FB mitigates this.
Thanks siblings, for letting me know about FB’s use of code splitting and how it helps caching.
I would bet that js bundling and splitting might prevent that from being true?
Perhaps but thankfully not all webapps are like Facebook.
Not so, refresh the page to see how large the second download is (much smaller)