dominject

Inject scripts and styles into the DOM with duplicate prevention and completion callback support

DOM Inject

Inject scripts and styles into the DOM with duplicate prevention and completion callback support

  1. Install Node.js
  2. npm install --save dominject
  1. See Browserify
var dominject = require('dominject');
dominject({
    type: 'script',
    url: '//some-url.js',
    attrs: {},  // attributes to be added to the injected dom element 
    nextfunction(err,el){
        // completion callback for once the element has completed or error'd 
    }
})

You can discover the history inside the History.md file

Check out the Backers.md file to discover all the amazing people who financially supported the development of this project.

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd