Skip to content

Comment on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture

Comments

(Disclaimer: very limited knowledge about WASM)

Curious as to how WASM impacts browser caching?

In the JS scenario, several modules will be cached and change in one may still allow usage of other cached modules, thereby reducing future load times.

How will that work in WASM work, since I'm assuming that the entire app will be packaged at build time as a single binary. Is the assumption even correct?

Or, is it simply a question of architecting your app well into several WASM modules, since I'm assuming WASM modules (or whatever they are called) can call each other and do lazy loading.

I can see this going in two ways: either we'll have WASM "shared libraries" that can be cached, or every website will go the way of apps and contain duplicate WASM modules in it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.