[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Wed Aug 14 17:08: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-patch needs-unit-tests | Focuses: performance
------------------------------------------+------------------------------
Comment (by mor10):
Adding the new `loading` spec is non-destructive and adds no new loads on
sites. Adding a JS library adds significant load and complexity. The
current CanIUse stats for `loading` is based on a week-old release of
Chrome. It will shoot up very fast. More importantly, WP adding `loading`
will increase the percentage of sites using the spec exponentially,
effectively carving a cowpath for the browsers to follow. This is very
much a question of what role WP wants to play on the web: A leader in
pushing the web forward, or a stalwart falling back on old tech when new
solutions exist.
From my perspective there are two options: Either we implement the
`loading` spec and move the web forward, or we do nothing. A JS solution
runs counter to the idea of native lazy-loading and may end up delaying
the implementation on the web significantly.
In my opinion.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list