content-ready

Listen for moment when content of element is ready (even with all images).

content-ready

Listen for moment when content of element is ready (even with all images).

Depends on jquery, uses q promise library.

This library is useful when you need to know when for example all images in some element are loaded.

$ npm install content-ready
var ready = require('content-ready');
 
ready($('#someRandomElement')).then(function(el) {
    console.log('all images were loaded.');
});
  • 1.0.0
    • First version