vanilla-lazyload

LazyLoad is a lightweight, flexible script that speeds up your website by deferring the loading of your below-the-fold images, backgrounds, videos, iframes and scripts to when they will enter the viewport. Written in plain "vanilla" JavaScript, it leverages IntersectionObserver, supports responsive images and enables native lazy loading. (by verlok)

Vanilla-lazyload Alternatives

Similar projects and alternatives to vanilla-lazyload

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better vanilla-lazyload alternative or higher similarity.

vanilla-lazyload reviews and mentions

Posts with mentions or reviews of vanilla-lazyload. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-11.
  • How to Lazy Load Html Videos
    3 projects | dev.to | 11 Mar 2023
    Vanilla-lazyload :
  • Beginners Guide to Web Performance: Optimizing Images
    3 projects | dev.to | 6 Sep 2021
    If you want to guarantee lazy-load across all (JavaScript-capable) browsers and not just images, I've used Vanilla Lazyload a couple years ago with success, but as this relies on using a data-src attribute, you will get W3C validation errors unless you also set a src attribute. But you don't want to set the src to a real image, because this will nullify the whole point of using the plugin, so set it to a 1x1 pixel "image" that will immediately get replaced by the data-src once the image scrolls into view.
  • Native lazy-loading of images with zero Javascript
    2 projects | dev.to | 8 Feb 2021
    There are a lot of snippets and scripts like vanilla-lazyload out there that enable lazy-loading via javascript. In almost all cases a data attribute is used to prevent upfront image loading.
  • LQIP in Rails using Thumbor and base64
    2 projects | dev.to | 2 Feb 2021
    Right, time to put the base64 images to use. What you want to do is to use these as placeholders while the full image is loading. I usually use vanilla-lazyload for this. It is a simple and tiny project that gets the job done. Do mind that if you use Turbolinks you have to make sure that vanilla-lazyload does its thing after Turbolinks is done. If you use Webpacker it will look something like this in your application.js file:
  • A note from our sponsor - SurveyJS
    surveyjs.io | 28 Mar 2024
    With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →

Stats

Basic vanilla-lazyload repo stats
9
7,539
5.6
about 3 hours ago
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com