$(function(){ $.getScript("demo.js", function() { alert("Script loaded but not necessarily executed."); }); })