Skip to content

colas31/lazyImg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

lazyImg

Lazy loader for image. Don't need an external library Don't need to modify your HTML to change the attribute of your images SEO friendly

How to use

Just call the script in header

Customisation

It's possible to change

  • the default image to display before to load the true one
  • A custom_offset to load the true image before it enter in viewport, to avoid user to wait the download

<script> lazyImg.setConfig('img/loading.gif', 400); </script>

Exemple

This script is used on this website Tuto&Co and more explanation in French here

About

Lazy loader for image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published