Support » Plugin: Dominant Colors Lazy Loading » using DCLL in a loop

  • Resolved Kibinai76


    Hi I’m using dcll in an archive page of a custom post type. It works fine always on the first 6 images (9 images per page) the other three are rendered with the SVG placeholder.
    Just few times all the images appeared but after reloaded the page again only the first 6 were visible.

    if I check via mobile no pictures are visible.

    I used the code in this way inside the archive page:
    <?php if ( has_post_thumbnail() ) {
    $image = get_the_post_thumbnail( $post_id );
    $image = apply_filters( ‘dominant_colors’, $image, get_post_thumbnail_id ( $post_id ) );
    echo $image;
    } else {

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author manuelwieser


    If you call monitorEvents(window, 'scroll'); in your browser’s console you’ll see that your site doesn’t emit scroll events. Do you have an idea why that could be?

    Yes you are right! I had body set to overflow-x hidden (for lightbox). Now everything works fine.
    Thank you.

    • This reply was modified 2 years, 9 months ago by Kibinai76.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘using DCLL in a loop’ is closed to new replies.