[buddypress-trac] [BuddyPress Trac] #8340: Support native browser image lazy-loading

buddypress-trac noreply at wordpress.org
Sun Sep 27 21:32:19 UTC 2020


#8340: Support native browser image lazy-loading
-------------------------+-----------------------
 Reporter:  r-a-y        |       Owner:  r-a-y
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  7.0.0
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------

Comment (by r-a-y):

 imath, thanks for the screenshots! I was only testing with YouTube.

 The problem with WordPress post embedding is it adds `"position: absolute;
 clip: rect(1px, 1px, 1px, 1px);"` to the iframe.

 Currently, iframe lazyloading in Chrome only works if it is visible, so
 `03.patch` fixes this by removing the absolute positioning. With the patch
 applied, I tested this with Firefox and iframes still work as expected so
 we should be safe. Let me know what you think.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8340#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list