Skip to main content
Andrea Verlicchi

Making the web faster and more user-friendly

Tagged “vanilla-lazyload”

  1. An elegant technique to lazyload images in Swiper, and lazily create Swiper instances

    Say you have multiple carousels in a page, each one containing multiple images, and you want to download only the images that are inside the visible portion of the page, and maybe save some CPU time by lazily create the carousel instances. I think I’ve found a valuable and elegant technique to do so.

    Read more →
  2. vanilla-lazyload vs lazysizes

    As the author of vanilla-lazyload, it's not the first time I get asked the question: What are the differences between vanilla-lazyload and lazysizes? This blog post is the answer to that question.

    Read more →
  3. Lazy load responsive images in 2020

    Do you want to boost performance on your website? You can do that by using **responsive images and lazy loading! In this article, you will find the HTML, JavaScript, and CSS code to lazy load responsive images, to make browsers use modern image formats like WebP and Jpeg2000, and to enable native lazy load where supported.

    Read more →
  4. Check if an element is still inside viewport after a given time

    What would you do if somebody asked you to load a DOM element only if it stays inside the viewport for a given time? You would use vanilla-lazyload, wouldn't you?

    Read more →

See all tags.