Skip to content

benjaminbojko/loadification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loadification

Standalone JS script to notify when images or videos are loaded within an element.

Usage

var Loadification = require('loadification');

var myDomElement = document.getElementById('my-element');
var myLoadification = new Loadification(myDomElement);

myLoadification.listen(function(loadification){
	console.log(loadification.domElement.getBoundingClientRect());
}, function(loadification, errorEvent){
	console.log('Loadification error :(');
});

About

Standalone JS script to notify when images or videos are loaded within an element.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published