Auto initalise Origami components
This component comprises a standard way of firing the
o.DOMContentLoaded event when the equivalent browser-native event fire, and will fire the Origami events even if the native ones have already been and gone, making this suitable for bundling with components that are loaded asyncronously.
o-autoinit is included automatically by the Origami Build Service. Manual build users may include
o-autoinit to initialise Origami components but it is not the only option. See the component initialisation documentation for more information.
autoinit component must be imported after all components that bind to the initialisation events. If it is required more than once, subsequent requires will not have any effect, and the initialisation events may be emitted as early as the first require point.
This software is published by the Financial Times under the MIT licence.