mutation-initialiser

0.1.6 • Public • Published

MutationInitialiser

This provides a wrapper around MutationObserver to initialise elements on a page as they are inserted into the document.

Alternatives are:

  • To simply receive a promise for when an element is loaded into the document, consider elementLoaded().
  • To simply handle an event for an element that does not exist yet, consider using event delegation.
  • For more complicated cases, use MutationObserver directly.
  • For building custom elements, consider Web Components.

API documentation is missing whilst this is under development. Feel free to browse the examples.

Package Sidebar

Install

npm i mutation-initialiser

Weekly Downloads

1

Version

0.1.6

License

BSD-3-Clause

Unpacked Size

6 kB

Total Files

4

Last publish

Collaborators

  • dbezborodov