Ask HN: Should I store my js/css bundles on localStorage for better page load? 1 points by lookupmobile 10y ago ↗ HN What are the pros/cons?
[–] tantalor 10y ago ↗ Check out service workers, they are designed to solve this problem,https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...In addition to caching JS/CSS, you can also cache your main document so your app can work offline.
[–] willstepp 10y ago ↗ Are you familiar with HTTP cache headers? Better to focus on your application and let the browser think about that stuff, if possible.
2 comments
[ 2.6 ms ] story [ 17.6 ms ] threadhttps://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...
In addition to caching JS/CSS, you can also cache your main document so your app can work offline.