Optional
callback?: ((module, element) => void | Promise<void>)The imported module
The element that triggered the module import
Optional
dependsLazyModules dependencies, in case one or many other modules must be loaded first.
Optional
lazy?: booleanShould the module be loaded when the trigger enters the viewport, or deferred to when the browser is idle.
Function that loads the module, or the es module resolve path.
The module that has been loaded. It can be anything: a class, a constant...
Optional
observerIntersection Observer options
Optional
on?: "scroll" | "click" | "hover"What triggers the module loading in interact
mode.
Optional
trigger?: string | NodeListOf<HTMLElement>Element to watch
Optional
when?: "immediate" | "interact" | "idle"What triggers the module loading.
Generated using TypeDoc
Function to execute after the module has been imported.