Friday, 22 April 2016

How to include a JavaScript file in another JavaScript file?

The jQuery library provides loading functionality in one line:
$.getScript("my_lovely_script.js", function(){

   alert("Script loaded but not necessarily executed.");

});

No comments:

Post a Comment

Alternative content