Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 345 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 345 Bytes

Insert HTML

Use a promise and requestAnimationFrame to insert HTML

Installation

  1. npm install insert-html

Usage

    var InsertHTML = require('insert-html');
    new InsertHTML('#selector', '<div>html</div>', 'html')
        .then(
            function(){
                // html was inserted
            }
        );