When I create a new site with umbraco I am usualy use a template for the site design, usualy those templates have some js file in in order to create a dynamic menu or gallery or some other stuff.
What is the best way to include those js files? should I just leave them in the master page or put them somewhere else?
Thank you By the way I saw that all the script files are referenced in the general.js file, can I put them there if I want? Or it's better not to temper with this file?
Adding js files to umbraco
When I create a new site with umbraco I am usualy use a template for the site design, usualy those templates have some js file in in order to create a dynamic menu or gallery or some other stuff.
What is the best way to include those js files? should I just leave them in the master page or put them somewhere else?
Thanks
Hi Moran,
I put them in the /scripts/ folder and reference them from the template(s).
Some use the ClientDependency Framework to deliver cached and minified resources.
Umbraco really lets you do whatever you're used to, or whatever suits the given project.
/Chriztian
Thank you
By the way I saw that all the script files are referenced in the general.js file, can I put them there if I want? Or it's better not to temper with this file?
is working on a reply...