[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Fri Jan 10 08:45:57 UTC 2020
#44427: Introduce lazy-loading API for media and other elements
-------------------------------------------------+-------------------------
Reporter: mor10 | Owner: flixos90
Type: feature request | Status: assigned
Priority: normal | Milestone: 5.4
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion | performance
-------------------------------------------------+-------------------------
Comment (by flixos90):
I like the suggestions by @mikeschroder @peterwilsoncc @azaozz to:
* prepare a proposal post for the make blog
* create a feature plugin for easy testing
I'll kickstart these two things and will invite all of you for
collaboration and review.
With both of this together, we'll be able to get more feedback on the
interoperability with people's sites, whether this causes any unexpected
side effects.
@spacedmonkey Our Lazyload plugin encompasses a bit more than the core-
envisioned solution (as in the patches here), so that IMO isn't suitable
as feature plugin. I'll transfer the latest patch
[attachment:"44427.8.diff"] into a feature plugin as is.
Regarding relying on theme support, I'd advocate against this. It would
potentially allow us to get it merged more quickly, but I feel like we
shouldn't do this because
* either it becomes one of these conventions that every theme adds support
to, which is pointless, and would then result in it being de-facto always
on anyway (which defeats the purpose of theme support)
* or it doesn't become one of these conventions, which will result in
probably 5% of themes adding support which largely limits the positive
performance impact this would have otherwise
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list