Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
/ lazysimon Public archive

Minimal effort 350 byte JavaScript library to lazy load all <img> on your website

License

Notifications You must be signed in to change notification settings

simonfrey/lazysimon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazysimon

Minimal effort 350 byte JavaScript library to lazy load all on your website

Lazy loading the images on your websites is a good idea in 99% of the cases. As all the other lazy load libraries where way to heavy for use case I build lazy-simon.js.

As it is only 350 byte in total size, I now can include it on every website I develop without having to worry about performance impacts. Only upsides here 🤩

The script uses a Intersection Observer for the getting the elements that are currently viewed. To check what browser all support this feature checkout https://caniuse.com/#search=intersectionobserver

About

Minimal effort 350 byte JavaScript library to lazy load all <img> on your website

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published