No lazy load on media assets thru code
-
I noticed today that images output through code with functions like
wp_get_attachment_image()
are no longer getting the lazy load treatment. I checked the changelogs and it looks like a previous update changed it. On inspecting the code, there is a commented out line of code ina3-lazy-load/classes/class-a3-lazy-load.php
, line 84:add_filter( 'wp_get_attachment_image_attributes', array( $this, 'get_attachment_image_attributes' ), 200 );
If I uncomment this line of code, all works as expected.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘No lazy load on media assets thru code’ is closed to new replies.