Firefox 75 gets lazy loading support for images and iframes

Mozilla plans to support lazy loading for images and iframes in Firefox 75. Lazy loading refers to a method that defers the loading of components on a web page to enhance loading and rendering of the webpage, cut back reminiscence use and community information utilization; these components are normally under the fold on load (not seen to the person).

Lazy loading up till now required using JavaScript. A brand new attribute for images and iframes provides lazy loading support in browsers that support it. Google introduced support for the new lazy loading tag in Chrome 76 which it launched final 12 months.

Mozilla added support for lazy loading in latest variations of Firefox Nightly, the leading edge improvement model of the browser. Lazy loading isn’t enabled by default however customers might allow it in Firefox Nightly. The characteristic will make its approach to Beta, Dev and finally Stable variations of the Firefox internet browser.

Control Lazy Loading in Firefox

firefox lazy loading

Here is the way you management lazy loading performance in Firefox:

  1. Load about:config within the browser’s handle bar.
  2. Confirm that you can be cautious if the middleman warning web page is displayed.
  3. Search for dom.image-lazy-loading.enabled.
  4. Toggle the choice in order that its worth is True (enabled).

You can disable lazy loading at any time by setting the choice to False in about:config. Load the following demo page to verify if lazy loading support is working appropriately.

lazy loading test

Lazy loading, as soon as enabled, works on websites that use the tag for images. WordPress plans to introduce support for the loading attribute for images within the fashionable running a blog platform by default which might add support robotically to WordPress blogs as soon as the change lands and the weblog is up to date to the brand new model.

Webmasters who do not use WordPress might have so as to add the tags manually or through the use of scripts. All it takes is so as to add loading=”lazy” to images or iframes to utilize the brand new characteristic.

Closing Words

The native integration of lazy loading of images and iframes in internet browsers, and support of the brand new attribute by WordPress, ought to push the characteristic considerably. JavaScript lazy loading has some points related to it however for the reason that native integration limits support to picture and iframes, it shouldn’t be affected by nearly all of these.

Now you: what’s your tackle lazy loading? (by way of Techdows)

Check Also

Mozilla launches Firefox Private Network VPN for Android

Mozilla launched Firefox Private Network VPN for Google’s Android working system just lately. The standalone …

Leave a Reply

Your email address will not be published. Required fields are marked *