• First of all your plugin is great and thank you so much for releasing it. My issue is with my product pages. The delay until interaction is making it so that my product images don’t load until there is an interaction. I have made sure that they aren’t lazy loading. This doesn’t happen on my homepage only my product pages. I’m wondering if there is a way to work around this? I don’t want to lose the page speed (if i put the setting on LCP optimization only my speed goes down to 39 and if it’s on Delay until first interaction I’m at 91).

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter bellemode

    (@bellemode)

    It’s so strange that the plugin doesn’t stop other pages images from loading until interaction.

    I have tried this bit of code:

    add_action( ‘wp_enqueue_scripts’, ‘load_product_images’, 99 );

    function load_product_images() {
    if ( is_product() ) {
    global $product;
    if ( is_object( $product ) && method_exists( $product, ‘get_gallery_image_ids’ ) ) {
    $attachment_ids = $product->get_gallery_image_ids();
    foreach( $attachment_ids as $attachment_id ) {
    $full_size_image = wp_get_attachment_image_src( $attachment_id, ‘full’ );
    if ( $full_size_image ) {
    $image_url = $full_size_image[0];
    echo ‘‘;
    }
    }
    }
    else {
    error_log( ‘WooCommerce product not found or get_gallery_image_ids() method does not exist.’ );
    }
    }
    }

    It doesn’t work either.

    • This reply was modified 1 year, 7 months ago by bellemode.
    • This reply was modified 1 year, 7 months ago by bellemode.
Viewing 1 replies (of 1 total)
  • The topic ‘Delay until interaction’ is closed to new replies.