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.

JavaScript

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.

Migration

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

Contact

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.


Licence

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

Status
active Origami v1 (Bower)
Switch component view

GitHub: o-autoinit

Install o-autoinit

If using the Build Service, add o-autoinit@^2.0.4 to your script tag.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-autoinit@^2.0.4".

Help & Support

o-autoinit is maintained directly by the Origami team. If you have any questions about o-autoinit or Origami in general, we are happy to help. 😊

Slack: #origami-support
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #origami-support
Email: origami.support@ft.com