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 _think_ @kevinfarrugia.bsky.social thought the impact was minimal (but if it's even slight I think we should reconsider our default format in @nuxt.com and possibly also in @vite.dev). the key thing I'd like to confirm is that it really is the case first ...
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...
github.com[blink] 2/2 Module streaming compilation for <link rel=preload> · chromium/chromium@3e261ebUse .mjs file extension to hint that a script should be
streaming-compiled as module.
Bug: 1178198
Change-Id: I3a99ef1131fbdb52cf439b488cd78485a955d8cf
Reviewed-on: https://chromium-review.googles...
0 reposts1 like