[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Sun Apr 7 21:51:50 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: | Focuses:
-----------------------------+------------------------------
Comment (by mor10):
Lazy loading is becoming a web standard, with implementation in Chrome
just around the corner. This should be the model anything with lazy
loading is based on in WordPress core:
https://addyosmani.com/blog/lazy-loading/
https://groups.google.com/a/chromium.org/forum/m/#!topic/blink-dev
/jxiJvQc-gVg
This is non-destructive and backwards compatible. Shipping it in WP core
will lay down the necessary cowpath for widespread browser support. I
suggest we work with the team behind this feature proposal to make a best-
practice implementation.
Some suggestions:
- all images `lazy` by default.
- first featured image on singular view `eager` by default.
- API for theme / plugin developers to control `loading` attribute on
case-by-case basis.
- optional: core to ship JS shim for backwards compat.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list