Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loading of JS snippets #2335

Closed
hamza1311 opened this issue Oct 20, 2020 · 0 comments · Fixed by #3069
Closed

Lazy loading of JS snippets #2335

hamza1311 opened this issue Oct 20, 2020 · 0 comments · Fixed by #3069

Comments

@hamza1311
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant