Firefox nightly build now supports for images and iframe lazy loading

For users, lazy loading for images can reduce the instantaneous bandwidth consumption, and for websites and developers, it can also distribute the pressure on the server to request bandwidth.

Usually to achieve lazy loading for images requires some scripting technology, but Google Chrome has previously proposed new and more convenient lazy loading for images.

These suggestions have been endorsed by the Web Hypertext Application Technology Working Group (WHATWG), and now Google’s suggestions have become the HTML standard.

After becoming a technical standard, major browsers are currently being updated to be compatible with these standards. For example, Firefox has now tested the standard in the nightly build.

According to the Firefox update announcement, relevant standards have been added to the nightly build of Firefox, and developers can now test in advance.

To test, you need to install the Firefox nightly build version, then go to the about:config configuration page and search for experimental projects related to lazy.

After finding dom.image-lazy-loading.enabled, you can modify its Boolean value from the default value to True, and then you can test it through this page.

If the webpage displays HTMLImageElement and True, it means lazy loading is enabled. If it displays HTMLImageElement and False, it does not support it.

Via: techdows