[wp-meta] [Making WordPress.org] #5062: Add native lazy loading on theme archive images

Making WordPress.org noreply at wordpress.org
Thu Mar 26 02:26:45 UTC 2020


#5062: Add native lazy loading on theme archive images
-----------------------------+--------------------------
 Reporter:  jonoaldersonwp   |       Owner:  coffee2code
     Type:  defect           |      Status:  closed
 Priority:  low              |   Milestone:
Component:  Theme Directory  |  Resolution:  fixed
 Keywords:  performance      |
-----------------------------+--------------------------

Comment (by dufresnesteven):

 Replying to [comment:5 dd32]:
 > Replying to [comment:4 coffee2code]:
 > > At @dufresnesteven's suggestion, I've made a code tweak ([9631]) and
 then lowered the `posts_per_page` value (via the WP admin) to 12. We can
 adjust as necessary.
 >
 > Be careful as to how that impacts API clients (ie. WordPress), I believe
 clients should be passing a specific number, but I can't quite recall.
 Test a WordPress instance through a probably-not-cached query (Search or
 tags) after changing them.

 Good point. Definitely should be tested but should be low risk.

 The only case where it won't fetch more items is if the page is not long
 enough and the window `onscroll` event is not triggered. Otherwise it may
 show all 12 on screen and on any movement will fetch the rest.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5062#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list