Skip to content

JoelRegus/LazyLoad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

LazyLoad

Lazy load images in JavaScript

Instead of placing the image's url in the src attribute, place it within a data attribute called data-url.

Then give all the elements you need to lazy load a class called "lazyload".

You can change the class name and data attribute in the config variable.

Call the lazyload method to load your assets.

About

Lazy load images in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published