vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Enable External Javascript (https://vborg.vbsupport.ru/showthread.php?t=205861)

TheInsaneManiac 02-19-2009 03:03 AM

Enable External Javascript
 
Is it safe to do this? Is it more server intensive? I only added one thing that uses it, but I didn't know if I enabled it, if other things in vbulletin would begin to use this as well.

Shamil. 02-19-2009 03:15 AM

The page will load slower but it will be easier on the server.

Dismounted 02-19-2009 04:00 AM

The page will not necessarily load slower, it may in fact load faster as the YUI JS may have already been cached by the user visiting a website that uses the framework (and also fetches the JS directly from Yahoo).

vbplusme 02-19-2009 07:33 AM

I have a few javascripts that I load from disk because they are simply unwieldy to try to manage in a template, a world clock for example. I don't notice any problems with them usually and especially have they have been loaded the first time. HTH

Dismounted 02-19-2009 08:02 AM

Hold on. Are wee talking about the external YUI function of vBulletin or just about using external JS generally?

vbplusme 02-19-2009 08:14 AM

I thought he was talking about using an external .js file rather than adding javascript code to a template, for example. I didn't see any reference to YUI JS except in your reply?

TheInsaneManiac 02-19-2009 08:18 PM

I just have a random javascript code, it wouldnt work until I enabled external javascript. I'm wondering if any other coding in vbulletin uses external javascript when enabled. If so what and how will it affect my server?

Dismounted 02-20-2009 03:27 AM

Where did you "enable external JS"?

TheInsaneManiac 02-20-2009 11:12 AM

External option in vbulletin admincp.

Dismounted 02-21-2009 03:31 AM

That options lets the user fetch the YUI JS framework directly from the Yahoo servers, so post #3 applies.


All times are GMT. The time now is 09:57 AM.

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.01475 seconds
  • Memory Usage 1,722KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete