Meta
Categories
Category Archives: JavaScript
Include another JavaScript File in JavaScript File
Use HeadJS * This one works for me. * Reference: http://headjs.com/ Example <script src="js/head.js"></script> <script> head.js( "js/common.js", "js/main.js"); head.ready(function(){ findAll(); }); </script> Use LABjs * Reference: https://github.com/getify/LABjs Example <script src="js/LAB.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function() { $LAB .script("js/common.js").wait() .script("js/main.js").wait(function(){ SetupPage(); }); }); … Continue reading