jitScript - safe append javascript with registry handler. prevent duplicated

/ Published in: JavaScript
Save to your folder(s)

var lib = ['foo.js','foo.js','foo2.js','foo.js','foo333.js','foo2.js'];
var slib = 'fooooo.js';

lib.jitScript(); // append foo.js, foo2.js & foo33.js
slib.jitScript(); // append fooooo.js

enable firebug console
JitScriptDebug = true;

validate scripts

URL: http://blog.kaizeku.com

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.