• Published 10 years ago
promise-insert-html v
Insert HTML
Use a promise and requestAnimationFrame to insert HTML
Installation
- npm install insert-html
Usage
var InsertHTML = require('insert-html');
new InsertHTML('#selector', '<div>html</div>', 'html')
.then(
function(){
// html was inserted
}
);