Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://www.weblog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 10/09/2017
    4
    @kent1
    @rastapopoulos
    @tofulm
    @mukt
    4

    Lozad.js
    ▻https://github.com/ApoorvSaxena/lozad.js

    Highly performant, light ~0.5kb and configurable #lazy_loader in pure JS with no dependencies for #images, #iframes and more, using #IntersectionObserver API

    Existing lazy loading libraries hook up to the scroll event or use a periodic timer and call getBoundingClientRect() on elements that need to be lazy loaded. This approach, however, is painfully slow as each call to getBoundingClientRect() forces the browser to re-layout the entire page and will introduce considerable jank to your website.

    Making this more efficient and performant is what IntersectionObserver is designed for, and it’s landed in Chrome 51. IntersectionObservers let you know when an observed element enters or exits the browser’s viewport.

    En lien avec ▻https://seenthis.net/messages/619904

    b_b @b_b PUBLIC DOMAIN
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 10/09/2017

      Ça a l’air super !

      #intégration #web #webperf #lazyload

      RastaPopoulos @rastapopoulos CC BY-NC
    Écrire un commentaire

thèmes

  • #iframes
  • #images
  • #IntersectionObserver
  • #lazy_loader
À propos de Seenthis Propriété intellectuelle Recommandations API