• Hello, firstly great plugin for lazy loading works fine for inline images, however for background images I am not seeing an improvement in loading images.

    I went ahead and implemented this manually just fine –

    
    <div class="rocket-lazyload" data-bg="url(../img/image.jpg)"></div>
    

    However, when loading the page I didn’t see any difference in image load. Am I missing something in the implementation for background images?

    Thank you,
    Mark

Viewing 1 replies (of 1 total)
  • Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi,

    It will depend on the placement of the image on the page. If it’s above the fold or close to it, it will still be loaded on page load.

    If you have an example URL we could give a more specific answer.

Viewing 1 replies (of 1 total)
  • The topic ‘Lazy Loading for background images – manual implementation’ is closed to new replies.