[wp-meta] [Making WordPress.org] #5190: Plugin images/screenshots should be lazy-loaded

Making WordPress.org noreply at wordpress.org
Fri Jun 10 10:33:14 UTC 2022


#5190: Plugin images/screenshots should be lazy-loaded
------------------------------+---------------------
 Reporter:  jonoaldersonwp    |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  high              |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:  seo performance   |
------------------------------+---------------------

Comment (by rafiahmedd):

 I think we can create a js module for this. Adding a new library for this
 isn't a proper solution I guess. And I think now we can use the
 `loading="lazy"`.

 Replying to [comment:6 smit08]:
 > Hi @dd32
 >
 > Yes, you are right we can't add a direct lazy loading attribute in img
 tag. But can we use this library (URL: https://www.npmjs.com/package
 /react-lazy-load-image-component) for the lazy loading? I think this will
 work.

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


More information about the wp-meta mailing list