Why call $.getScript instead of using the <script> tag directly?
I don't understand the reason for replacing this: <script src="js/example.js"></script> with this: $.getScript('js/example.js', function() { alert('Load was performed.'); }); Is there a particular reason to use the jQuery version? The only reason I can think of is that you get the callback when the script is loaded. But you can get that callback using a script tag, too, by using the load event (or on really old IE, onreadystatechange ). In contrast, there are several negatives to doing it this way, not least that getScript is subject to the Same Origin Policy , whereas a script tag is not.