Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2020-08-17 06:41:33
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,546
- Website
Lazy loading
Lazy loading of images and iframes is now supported in most browsers except Safari for which there is the polyfill js. Does anybody have any experience with it?
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Online
#2 2020-08-17 08:13:31
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 10,089
- Website
Re: Lazy loading
We’re already doing it on the Images panel.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#3 2020-08-17 08:31:12
- Dragondz
- Moderator
- From: Algérie
- Registered: 2005-06-12
- Posts: 1,387
- Website
Re: Lazy loading
Hi Stef,
Will it be added to txp:image tag ?
Cheers.
Offline
#4 2020-08-17 08:33:23
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,267
- Website
Re: Lazy loading
lazy-loading
will work fine in Safari.next due next month. I would definitely not bother with a polyfill. Nothing bad will happen – the attribute will be silently ignored.
Where is that emoji for a solar powered submarine when you need it ?
Offline
#5 2020-08-17 08:33:26
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 10,089
- Website
Re: Lazy loading
Dragondz wrote #325408:
Will it be added to txp:image tag ?
Don’t see why not. A simple lazy
attribute, perhaps. Does that make sense?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#6 2020-08-17 08:48:46
- philwareham
- Core designer
- From: Haslemere, Surrey, UK
- Registered: 2009-06-11
- Posts: 3,476
- Website
Re: Lazy loading
Bloke wrote #325411:
Don’t see why not. A simple
lazy
attribute, perhaps. Does that make sense?
Since the loading
attribute can currently accept:
lazy
(lazy loading)eager
(load right away)auto
(browser will determine whether or not to lazily load)
I would not use lazy
as the attribute name – IMO just use loading
like the proper HTML attribute name, and allow all 3 variants within it.
Offline
#7 2020-08-17 08:52:37
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 10,089
- Website
Re: Lazy loading
@philwareham. Good point. Noted.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Pages: 1