Skip to content

Lazy loading of JS snippets #2335

@ranile

Description

@ranile

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions