Skip to content

Feature suggestion: Autoloader #2

@JensRoland

Description

@JensRoland

With a few lines of JS (using a MutationObserver) you can add autoloading to boreDOM; see https://css-tricks.com/an-approach-to-lazy-loading-custom-elements/ for a minimal implementation. This allows you to add components by just inserting the tag and a custom tag, even dynamically added custom tags will be detected so the corresponding script can be loaded.

Just a thought.

And: Nice work on boreDOM, a refreshing take.

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