awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetServeur MCPÀ proposNotre méthodologiePresse
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
callmecavs avatar

callmecavs/layzr.js

0
View on GitHub↗
5,503 stars·233 forks·JavaScript·4 vuescallmecavs.com/layzr.js↗

Layzr.js

layzr.js est une bibliothèque JavaScript de lazy loading d'images conçue pour améliorer la vitesse de chargement initiale des pages en retardant le téléchargement des images jusqu'à ce qu'elles entrent dans la fenêtre d'affichage (viewport) du navigateur. Elle fonctionne comme un sélecteur d'images responsive qui identifie la source d'image la plus appropriée en fonction de la prise en charge du navigateur et du ratio de pixels de l'appareil.

La bibliothèque utilise un système de livraison d'images responsive qui évalue les attributs de données pour sélectionner les sources optimales. Elle inclut un mécanisme de suivi de contenu dynamique, qui surveille le document pour les images nouvellement ajoutées afin de s'assurer qu'elles sont automatiquement ajoutées à la file d'attente de chargement.

Le projet fournit un suivi de visibilité via l'API Intersection Observer et inclut un utilitaire pour forcer des rafraîchissements manuels de la fenêtre d'affichage. Il dispose également d'un émetteur d'événements qui permet à une logique personnalisée de s'exécuter via des hooks de cycle de vie avant et après la mise à jour des sources d'images.

Features

  • Image Lazy Loading - Provides a JavaScript library that defers image loading until elements enter the viewport to optimize page speed.
  • Optimal Source Selection - Selects the best image source based on browser support, device pixel ratio, and data attributes.
  • Dynamic Image Selectors - Evaluates device pixel ratio and browser support features to choose the most appropriate image source.
  • Dynamic Element Observation - Detects and tracks new elements added to the DOM asynchronously to ensure they are added to the lazy loading queue.
  • DOM Element Mutation Observers - Employs DOM mutation observers to automatically identify and track new images added to the document.
  • Intersection Observer Implementations - Implements the IntersectionObserver API to detect element visibility within the viewport and trigger source updates.
  • IntersectionObserver Media Loaders - Uses the IntersectionObserver API to automate the downloading of images as they enter the browser viewport.
  • Responsive Image Loaders - Automatically selects the most appropriate image source based on viewport size and device capabilities.
  • Initial Page Load Optimizations - Improves initial page load speed by deferring the download of images until they are visible to the user.
  • Frontend Resource Management - Controls when and how images load to improve perceived speed and reduce unnecessary data usage.
  • Source Selection Logic - Implements a system to select the optimal image URL by evaluating custom HTML attributes against device pixel ratios.

Historique des stars

Graphique de l'historique des stars pour callmecavs/layzr.jsGraphique de l'historique des stars pour callmecavs/layzr.js

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Layzr.js

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Layzr.js.
  • verlok/lazyloadAvatar de verlok

    verlok/lazyload

    7,852Voir sur GitHub↗

    This project is a vanilla JavaScript library and web performance optimizer designed to defer the loading of images, videos, and iframes until they enter the browser viewport. It acts as an intersection observer wrapper and adaptive media loader to reduce initial page load times and save bandwidth. The library distinguishes itself by supporting responsive images via srcset and picture tags, as well as CSS background images and animated SVGs. It integrates with native browser loading attributes where available while providing custom fallbacks for unsupported environments. It can also trigger th

    JavaScript
    Voir sur GitHub↗7,852
  • verlok/vanilla-lazyloadAvatar de verlok

    verlok/vanilla-lazyload

    7,853Voir sur GitHub↗

    vanilla-lazyload is a JavaScript lazy loading library and viewport-based asset loader designed to improve page load speed by deferring the loading of images, videos, iframes, and backgrounds. It functions as an intersection observer media loader that triggers resource downloads and script execution only when elements enter the browser viewport. The project also serves as a native lazy loading polyfill, utilizing native browser loading attributes where supported and providing a JavaScript fallback for older environments. The library distinguishes itself through active bandwidth management, suc

    JavaScripthacktoberfestiframesimages
    Voir sur GitHub↗7,853
  • ivopetkov/responsively-lazyAvatar de ivopetkov

    ivopetkov/responsively-lazy

    1,092Voir sur GitHub↗

    Responsively-lazy is a library designed to optimize web performance by deferring the loading of off-screen assets until they are required by the user. It functions as a utility for reducing initial page payloads by delaying the rendering of images, background images, and HTML content until elements enter the browser viewport. The library distinguishes itself through its automated handling of dynamic content. By utilizing a mutation observer, it monitors the document tree for new elements added after the initial page load and applies lazy loading behaviors to them without requiring manual re-i

    JavaScriptcsshtmljavascript
    Voir sur GitHub↗1,092
  • tuupola/lazyloadAvatar de tuupola

    tuupola/lazyload

    8,727Voir sur GitHub↗

    Lazyload is a JavaScript plugin that defers the loading of images until they scroll into the viewport, using the browser's Intersection Observer API to detect visibility. It is designed to speed up initial page load and save bandwidth by delaying off-screen images, and includes a jQuery-compatible wrapper for drop-in integration with existing jQuery code. The plugin distinguishes itself through support for responsive images, loading different sources based on screen size, and a blur-up placeholder effect that shows a low-resolution image that transitions into the sharp version once fully load

    JavaScript
    Voir sur GitHub↗8,727
Voir les 30 alternatives à Layzr.js→

Questions fréquentes

Que fait callmecavs/layzr.js ?

layzr.js est une bibliothèque JavaScript de lazy loading d'images conçue pour améliorer la vitesse de chargement initiale des pages en retardant le téléchargement des images jusqu'à ce qu'elles entrent dans la fenêtre d'affichage (viewport) du navigateur. Elle fonctionne comme un sélecteur d'images responsive qui identifie la source d'image la plus appropriée en fonction de la prise en charge du navigateur et du ratio de pixels de l'appareil.

Quelles sont les fonctionnalités principales de callmecavs/layzr.js ?

Les fonctionnalités principales de callmecavs/layzr.js sont : Image Lazy Loading, Optimal Source Selection, Dynamic Image Selectors, Dynamic Element Observation, DOM Element Mutation Observers, Intersection Observer Implementations, IntersectionObserver Media Loaders, Responsive Image Loaders.

Quelles sont les alternatives open-source à callmecavs/layzr.js ?

Les alternatives open-source à callmecavs/layzr.js incluent : verlok/lazyload — This project is a vanilla JavaScript library and web performance optimizer designed to defer the loading of images,… verlok/vanilla-lazyload — vanilla-lazyload is a JavaScript lazy loading library and viewport-based asset loader designed to improve page load… ivopetkov/responsively-lazy — Responsively-lazy is a library designed to optimize web performance by deferring the loading of off-screen assets… hilongjw/vue-lazyload — vue-lazyload is a Vue.js image lazy loading plugin and frontend asset optimizer. It serves as a viewport visibility… tuupola/lazyload — Lazyload is a JavaScript plugin that defers the loading of images until they scroll into the viewport, using the… aljullu/react-lazy-load-image-component — This library provides a set of React components designed to improve initial page load performance by deferring the…