Firefox 75 gets lazy loading support for images and iframes
#1
Information 
Quote:
[Image: firefox-lazy-loading.png]

Mozilla plans to support lazy loading for images and iframes in Firefox 75. Lazy loading refers to a technique that defers the loading of elements on a page to improve loading and rendering of the webpage, reduce memory use and network data usage; these elements are usually below the fold on load (not visible to the user).

Lazy loading up until now required the use of JavaScript. A new attribute for images and iframes adds lazy loading support in browsers that support it. Google introduced support for the new lazy loading tag in Chrome 76 which it released last year.

Mozilla added support for lazy loading in recent versions of Firefox Nightly, the cutting edge development version of the browser. Lazy loading is not enabled by default but users may enable it in Firefox Nightly. The feature will make its way to Beta, Dev and eventually Stable versions of the Firefox web browser.

Control Lazy Loading in Firefox

Here is how you control lazy loading functionality in Firefox:

1. Load about:config in the browser's address bar.
2. Confirm that you will be careful if the intermediary warning page is displayed.
3. Search for dom.image-lazy-loading.enabled.
4. Toggle the preference so that its value is True (enabled).

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

Lazy loading, once enabled, works on sites that use the tag for images. WordPress plans to introduce support for the loading attribute for images in the popular blogging platform by default which would add support automatically to WordPress blogs once the change lands and the blog is updated to the new version.

Webmasters who don't use WordPress may need to add the tags manually or by using scripts. All it takes is to add loading="lazy" to images or iframes to make use of the new feature.
...
Continue Reading
[-] The following 1 user says Thank You to harlan4096 for this post:
  • silversurfer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
Intel shares Granite Rapids-WS Xeon 600 ...
Intel posts Xeon 6...harlan4096 — 09:49
Manjaro Linux 26.0.3 Build 260228
Manjaro Linux 26.0...harlan4096 — 08:20
K-Lite Codec Pack 19.5.0 / 19.5.4 Update
Changes in 19.5.4 ...harlan4096 — 08:19
JEDEC publishes UFS 5.0 spec with up to ...
KIOXIA starts samp...harlan4096 — 08:17
QOwnNotes
26.2.15  Fix Qt5 ...Kool — 07:30

[-]
Birthdays
Today's Birthdays
avatar (51)Claudestync
Upcoming Birthdays
avatar (44)gapedDow
avatar (38)snorydar
avatar (43)Hectorvot
avatar (51)knowhanPluts
avatar (39)Williamengiz
avatar (46)qaqapeti
avatar (44)battsourIonix
avatar (43)CedricSek
avatar (39)chasRex
avatar (43)slavrProck
avatar (45)Tyesharaike
avatar (49)TomeRerla
avatar (45)walllMIZ
avatar (41)oconyho
avatar (33)uteluxix
avatar (47)piafcflene
avatar (39)Matthewkah
avatar (51)tersfargum
avatar (50)alfreExept
avatar (38)Charlesfibre
avatar (42)napasvem
avatar (44)diploJeoca
avatar (38)francisnj3
avatar (43)artmaGoork
avatar (45)tukraNax
avatar (41)RichardCisee
avatar (40)ebenofit
avatar (38)ykazawu
avatar (41)ARYsahulatbazar

[-]
Online Staff
There are no staff members currently online.

>