vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Which template I have to edit?? (https://vborg.vbsupport.ru/showthread.php?t=275545)

start2008 12-15-2011 09:30 PM

Which template I have to edit??
 
On webpage speed test result, I got:

Quote:

- 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!


All times are GMT. The time now is 04:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete