Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-07-25 17:38:06

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Lazy loading


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#2 2021-07-26 12:08:01

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Lazy loading

Unless you definitely know that an image tag is going to be below the fold there’s no need to using the loading attribute at all. Since the modern browser will use its own logic to determine if an image is to be lazy loaded or not.

The attribute is just to explicitly override default behaviour (i.e. Chrome will mostly lazy load all images below the fold as a default).

Offline

#3 2021-07-27 06:41:37

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: Lazy loading

Thank you a lot, Phil, for these specific explanations!


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB