Is there anyway to trigger the Wordpress 5.5 Lazy Loading feature on custom img tags?
This article mentions that "By default, WordPress will add loading="lazy" to all img tags that have width and height attributes present."
When I try to add an image through wp_get_attachment_image() it does add the loading="lazy" and srcset attributes, however when I try to add a plain img tag with the width and height set, these attributes are not being added. Is there an additional class that needs to be set in order to trigger the lazy loading? Or is there something else needed?
<img src="https://via.placeholder.com/300/" alt="placeholder" width="300" height="110">