Skip to content

Lazy Loading #19

@goenning

Description

@goenning

Is it possible to lazy load this package?

My use case is that most users will never see a toast, so I don’t want them to pay the price of extra JS unnecessarily

it’s pretty easy to lazy load the “toast” object, but the problem is the Toaster container. I’ll try do It by dynamically attaching it to the DOM on first use (maybe using Solid Portal?), but in case someone already solved this, please share 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions