• At the bottom of posts, we have related posts embedded with WordPress Embeds. The frame lazy loads correctly, but whether or not we have Video and iframes enabled, the image does not load. You can see the image markup is configured for lazy load, but it seems like no scripts are included in the frame to activate it.

    I’m working around the issue by wrapping line 69 in a3-lazy-load/classes/class-a3-lazy-load.php like so:

    if (!IFRAME_REQUEST) {
      add_filter( 'wp_get_attachment_image_attributes', array( $this, 'get_attachment_image_attributes' ), 200 );
    }
    

    I don’t think we want to change how image links work in the iframes if the frames themselves are lazy loaded. Is there something wrong with how our embeds are getting made, or what should we be doing to get around this?

    Thank you!

    • This topic was modified 7 years, 7 months ago by justinrt.
    • This topic was modified 7 years, 7 months ago by justinrt. Reason: Make it prettier
  • The topic ‘Images in embeds never load’ is closed to new replies.