So Do just one thing make list Which JS need before page load and need JS after page load. Now JS which need after JSP page load put just before
HTML </body> BODY tag close.
But the mere presence of a small amount of script in a JSP will have no measurable effect on performance.
That said, putting the script into a separate script file will allow the script to be cached, and is a good idea. This is especially important in client-intensive applications where the amount of script can be considerably larger than a few hundred lines.