I'm working on a project where I'm using a template for all JSF pages.
The <head>
tag is defined in the template, so it's the same for all pages.
In this project JS is needed. I know JS files should be imported in the <head>
but doing that for all JS files required by the project would be inefficient because every script would be included in every page.
I would like to know if there is a smart way to load a JS file(s) only for a(some) specific page(s) considering also that I'm using JSF 1.2 so it's not possible for me to solve this problem using <h:outputScript>
.
Thanks!