Skip to content

levyadams/simple-intersection-observer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to start project

  1. clone repo
  2. click index.html or load it from any browser.
  3. scroll down for magic times.

How to start

To use simpleIO to lazy load images, simple append or create an image with an id='lazy-img'. You can change this setting in simpleIO.js line 3 to whatever you want.

Project Info

This is a really simple example for how to use intersection observer to do a multitude of really cool things, but mostly for lazy-loading images without some bulky project that ends up not working.

Pushing changes

I don't promise any pulls to this repo unless it is something really worthwhile. I want to keep this simple, as everything on the internet for lazy-loading images is really bad and works poorly/is hard to scale/hard to manipulate the code or figure out what is even going on.

About

A simple intersection observer for lazy loading images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published