This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Can somone tell me why I can't load few *.js scripts from JSP file <head> section?
I've tried but server loads just first file, rest it's skipped.
It's becouse of performance issue?
How I suppose to include few js file without combining them into one file? (one js works fine), is there any method to join them?
if your first js file have some syntax problem OR any type of problem,error then probably your other files will not be loaded OR if they will be loaded then they will show error.
so better if you check your first js file OR you can do 1 more thing change the order of file which you are using i mean put first js in last.
It is also a good practice to put all .js files in last of the jsp page if you are using many js files because when your page will be loaded on web browser first it will load all .js files after that your view will be displayed. In this case user have to wait a little long.so better provide view & then js should be loaded. This should be used if your page is not using js files initially OR if this approach not affecting your business logic.
of course modify it to suite your needs.
the -part tells the browser where the files are relative to where they are deployed. If you don't do this and the application is moved from one location to another the paths wont be correct and the browser won't find the files.