is it the best practice of placing all the scripts use in different pages to be placed in the header file??
I think no because if a page do not uses a particular script and it is still loading and wasting processing time and memory..
what is the correct way..
please correct me..
It's kind of the same thing as asking "What is the best way to fetch data from a database? Lazy or eager?" or "Which is the best web framework for all my applications?"
Also, why would you put a script you don't use in a page?
actually i am using bootstrap..
yes Bear Bibeault, you caught my feelings.. :)
and thanks Bear Bibeault, i think,i got my answer,,
what i done till now :
i create one header file , and import all the jqueries, javascripts in that page, and use <jsp:include> on each page because every page needs header, and with that header all the javascripts, jquery are also included in each page