[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Sat Aug 17 19:38:01 UTC 2019
#44427: Introduce lazy-loading API for media and other elements
----------------------------------------+------------------------------
Reporter: mor10 | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch | Focuses: performance
----------------------------------------+------------------------------
Comment (by birgire):
@jonoaldersonwp thanks for clarifying that. I guess it would be like
running both the native way and a JS fallback, yeah that was my worry. I
will just try this out when I can :-)
I assume there might also be content cases like:
{{{
<img data-no-lazy="1"
<img class="skip-lazy"
...
}}}
i.e. if the user has explicitly set the content images to not lazy load.
I think those cases should be respected, if possible, so that they would
not be lazy loaded regardless.
So in addition to defining a suitable flag to avoid this, the existing
flags out there, should be respected, if possible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list