Advertisement
Guest User

Untitled

a guest
May 11th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function loadScripts(url){
  2.     /* function for loading scripts we depend on
  3.      * Reason for this is that we do not need to change the plugin code if we want to implement new scripts
  4.      */
  5.     var scripts = ["demo.js","loadme.js"];
  6.     jQuery(scripts).each(function(index,value){
  7.         jQuery.getScript(url+"/"+value);
  8.        
  9.     });
  10. }
  11. loadScripts("http://mydomain.com/shop/scripts");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement