Origami Frontend Components & Services

JSDoc: o-lazy-load

new LazyLoad(rootEl, options)

Class constructor.

parameter type default description
rootEl (optional) HTMLElement The component element in the DOM
options (optional) Object {} An options object for configuring the component

Methods

Links

LazyLoad.getDataAttributes(rootEl)

Static Method

Get the data attributes from the ${name.titleCase}Element. If the message is being set up declaratively, this method is used to extract the data attributes from the DOM.

parameter type default description
rootEl HTMLElement The component element in the DOM

Links

LazyLoad.init(rootElement, options)

Static Method

Initialise component.

parameter type default description
rootElement HTMLElement | String The root element to intialise the component in, or a CSS selector for the root element
options (optional) Object {} An options object for configuring the component

Links

Switch component view

GitHub Repository

Install o-lazy-load

If using the Build Service, add o-lazy-load@^1.0.2 to your script and link tags.

If running a Manual Build, run bower install --save "o-lazy-load@^1.0.2".

Help & Support

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

Slack: #ft-origami
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: #ft-origami
Email: origami.support@ft.com