Skip to content

About

Manages img nodes whose src is not assigned until they are scrolled into view.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

delayed-img-manager

Manages img nodes whose src is not assigned until they are scrolled into view.

When a large number of <img> nodes exist in the DOM, their src attributes tell the browser to perform a GET for the images which can clog available network resources and hog server bandwidth. This dijit allows you to delay the loading of images until they're actually visible to the user.

Prepare your <img> nodes with data-src attributes instead of src attributes. DelayedImgManager will change data-src into src when it sees that the <img> node has come into view.

<img data-src="/some/image.jp">

About

Manages img nodes whose src is not assigned until they are scrolled into view.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages