[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Sat Aug 17 12:26:37 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
----------------------------------------+------------------------------
Changes (by spacedmonkey):
* keywords: needs-patch needs-unit-tests => needs-unit-tests has-patch
Comment:
As a talking point, I have uploaded a first patch to this ticket. This
uses a new feature flag. To enable lazy loading images, simply add theme
support for `lazy-loading-images`. This is something I discussed with
@joemcgill .
The function is designed to be easily to lazy loading to iframes later as
well.
I don't personally believe we need a javascript shim here for backwards
compability. We don't do this with srcsets correctly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list