Origami Frontend Components & Services

Readme: o-autoinit

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.


import 'o-autoinit';

The 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.


State Major Version Last Minor Release Migration guide
✨ active 3 N/A migrate to v3
⚠ maintained 2 2.0.7 migrate to v2
╳ deprecated 1 1.5 N/A


If you have any questions or comments about this component, or need help using it, please either raise an issue, visit #origami-support or email Origami Support.


This software is published by the Financial Times under the MIT licence.

Switch component view

GitHub: o-autoinit@3.1.3