Safe Script Load


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

Safely loads a javascript file asynchronously

Example:

(function() {
__safeLoadScript("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", function() {
alert(jQuery);
});
})();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.