is this still true, even for script type=module? π€― cc: @chromium.social β¦ canβt for the life of me find the message but thank you to the person at @perfnow.bsky.social who sent this my way β€οΈ web.dev/learn/perfor...
Post
I don't think it matters for the web. But does for Node and the like: v8.dev/features/mod...
v8.devJavaScript modules Β· V8This article explains how to use JavaScript modules, how to deploy them responsibly, and how the Chrome team is working to make modules even better in the future.
And yet oddly written after the doc I linked! @kevinfarrugia.bsky.social did you write web.dev/learn/perfor... ? Got any more info on mjs file extension?
web.devCode-split JavaScript Β |Β web.devSome resources are not crucial to a web page's initial load. JavaScript is one such resource that can be deferred until the time of need through a technique known as code splitting. By doing so, y...
I wonder if the source for this comment in the docs is this commit/optimisation which only applies for missing `modulepreload`: bsky.app/profile/dani...
for example, this commit (if it's the _only_ optimisation) seems to suggest it might just apply to link preloads where `modulepreload` is not explicitly set: github.com/chromium/chr...
0 reposts3 likes
No replies yet.