Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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 | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
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
Re: Lazy loading
Hi Stef,
Will it be added to txp:image tag ?
Cheers.
Offline
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 ?
Sand space – admin theme for Textpattern
Offline
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
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
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