JavaScript code is much more expensive, byte for byte, than an image, because of the time spent parsing and compiling it. It's possible to parse and compile wasm as fast as it comes over the network, which makes it much more like an image than JavaScript code. Game changer!
-
-
Replying to @wycats
In V8, we have a script streamer allowing us to background parse JavaScript as it comes through on the network. This is in ways similar to “progressively” loading scans of an image, except we need to wait on parse/compile before we can execute the fetched code.pic.twitter.com/ztMZy7yZXu
4 replies 35 retweets 159 likes
Replying to @addyosmani
This helps (a little, sometimes) but JS is still complex to parse, compile is still a separate phase, and you have to execute top level modules before they can be used as code. So it's a little improvement but mostly a drop in the bucket compared to wasm.
0 replies
1 retweet
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.