Skip to Content
Menu

Deprecated

lazyLoadHTML()

Load any HTML declared for lazy-loading at the appropriate time.

JavaScript February 7, 2021

Deprecated

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

  • For <img> elements, you can use the lazy_img() function (or lazy_load()).
  • For <iframe> elements, you can use the lazy_iframe() function (or lazy_load()).
  • For all other HTML elements, use the lazy_load().
  • For background images, add the class .lazy-load to the element.

Warning: The HTML (<img>, <iframe>, etc.) methods support non-JavaScript environments, but the .lazy-load method requires JavaScript to work.

To trigger the load function manually, use nebula_load event trigger: jQuery(document).trigger('nebula_load');

Once the load function is triggered, the listeners are removed (except for the force_load trigger) as they are no longer needed.

Deprecated: This still works, but is handled by lazyLoadAssets instead.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!