-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Motivation
Currently all the javascript snippets are loaded when the wasm module is requested. When the entire app rendered via that module and it also requests javascript which isn't needed immediately, it causes a lot of network requests which can be delayed off.
Proposed Solution
Allow lazy loading of javascript snippets.
Alternatives
As far as I'm aware, the only solution is to load everything when the wasm module is loaded.
Additional Context
I'm making a wrapper around @material
web components for Yew and want to load the javascript files as needed.
lukechu10