Home Forums Bug Reports wp_get_attachment_image / lazy loading / Gutenberg


wp_get_attachment_image / lazy loading / Gutenberg

  • Using wp_get_attachment_image with the loading attr set to false should remove loading in the output as per docs.

    Recently this hasn’t worked for me anymore. Setting loading to false and lazy still gets added. I am not the only one with this problem, see this thread in WP TRAC.

    A workaround is using ‘loading’ => ‘eager’ instead, but would be better if it just worked like described in the docs.

    The issue seems to be related to using wp_get_attachment_image in a Gutenberg ACF block.

    WP 6.2.2, ACF 6.1.7

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.