[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements

WordPress Trac noreply at wordpress.org
Wed Aug 14 03:03:15 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 pierlo):

 I've added lazy loading of images to theme screenshots, as @joyously
 suggested
 [https://wordpress.slack.com/archives/C5UNMSU4R/p1565710477346500?thread_ts=1565707922.333300&cid=C5UNMSU4R
 here].

 I used the lazysizes library for implementing it, and added the `native-
 loading` plugin to automatically transform `img.lazyload` elements in
 browsers that support native lazy loading.

 The media library page can also benefit from this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list