4 ms·
Would inlining CSS and JS work on web sites (not apps)? I kinda feel inlined JS will bypass bytecode cache and the parsing costs have to be paid on each page lo
by aitchnyu 6y ago
Would inlining CSS and JS work on web sites (not apps)? I kinda feel inlined JS will bypass bytecode cache and the parsing costs have to be paid on each page load.
- randomtree 6y agoYep, inlining only optimizes first page load.
- earthboundkid 6y agoThe whole point of this discussion is that push only optimizes the first load, and then it pessimizes all subsequent loads. That's why no one adopted it.
- sanxiyn 6y agoInlined scripts do get cached, but cache is keyed to document's URL. Go https://v8.dev/blog/code-caching-for-devs https://v8.dev/blog/code-caching-for-devs and search for "inline".