load qUnit asyncronously

Posted by Cedric Dugas on Stack Overflow See other posts from Stack Overflow or by Cedric Dugas
Published on 2010-05-20T03:02:38Z Indexed on 2010/05/20 3:10 UTC
Read the original article Hit count: 254

Filed under:
|
|

I am trying to load qUnit in js but the addevent function in QUnit.js is never fired, and it just not working:

var appendQUnit = document.createElement('script');

appendQUnit.src = 'js/utility/qunit/qunit.js';

appendQUnit.type = 'text/javascript';

document.getElementsByTagName('head')[0].appendChild(appendQUnit);

© Stack Overflow or respective owner

Related posts about qunit

Related posts about JavaScript