jquery - how to include javascript libraries in my own script -


this question has answer here:

i have written functions in javascript , i've put them in separate js file (visualisations.js). functions i've written use several other javascript libraries, @ moment these libraries included in html page, have 7 lines this

<script src="js/jquery-1.9.1.min.js"></script> <script src="js/raphael.2.1.0.min.js"></script> <script src="js/justgage.1.0.1.min.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/jquery.ui.touch-punch.min.js"></script> <script src="js/dygraph-combined.js"></script> <script src="js/visualisations.js"></script>.  

my question: there way include libraries own js file (visualisations.js) need include own js file in html file , not write 7 lines include libraries.

any suggestions? please keep answer understandable, i'm no advanced programmer.

grtz stijn

there lot of tools around though seem overkill have do.

i think best bet take files , copy paste them 1 single file.

if want use tool, since require (and complexity :d) recommend trying out grunt, easy set , if you'll ever need expand suit further needs hassle free, example, concatenate:

grunt.initconfig({   concat: {     dist: {       src: ['libs/first.js', 'libs/second.js'],       dest: 'out/first-and-second.js'     }   } }); 

Comments