PDA

View Full Version : Which template I have to edit??


start2008
12-15-2011, 09:30 PM
On webpage speed test result, I got:

- This page has 13 external Javascript scripts. Try combining them into one.
- This page has 5 external stylesheets. Try combining them into one.

I already combined the scripts and stylesheets but I don't know which exactly the template I have to edit to replace scripts with the new combined one.
I tried "header, "headinclude" and "forumhome" but I didn't find all the scripts mentioned in the test result.

my site: www.egyptianoasis.net and I'm working on vb 4.1.6

Thanks!

Chris8
12-16-2011, 01:24 AM
vBulletin forum isn't a simple website, it has very complex functionality, combining all javascripts into one and css stylesheets into one might not be best thing to do. :) Also it may cause completely opposite effect because one stylesheet may load on one page while on another may not be necessary, same for javascripts, so when all of it will get loaded on every page the result may be reverse - it may take much longer to load a page. Better thing would be to minify everything what is not minified.
But to answer your questions, as for CSS it always go to head of the site so -> headinclude, javascripts not necessarily, but usually they go also into head bellow styles.

start2008
12-16-2011, 07:07 AM
Thank you Chris8,

So, is the headinclude template is the one that I'll get all javascripts and stylesheets to manage or some javascripts and stylesheets will be located in another templates as "forumhome" or "header" or "forumdisplay"???

another quetion (sorry if it is silly) html code in page source, where it's located in the different templates of site??

Thanks!