![]() |
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.
|
The page will load slower but it will be easier on the server.
|
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).
|
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
|
Hold on. Are wee talking about the external YUI function of vBulletin or just about using external JS generally?
|
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?
|
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?
|
Where did you "enable external JS"?
|
External option in vbulletin admincp.
|
That options lets the user fetch the YUI JS framework directly from the Yahoo servers, so post #3 applies.
|
Now I am confused. Doesn't YUI JS have to do with loading or not Yahoo Libraries for using their javascript widgets? I didn't think that had anything to do with running custom javascript code?
|
<a href="http://developer.yahoo.com/yui/" target="_blank">Yahoo! User Interface Library</a>
|
Quote:
<script type="text/javascript" src="external.php?type=js"></script> <script language="" type="text/javascript"> <!-- for (x = 0; x < 10; x++) { document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>, "); } //--> </script> |
Oh, that is different. You enabled External JS Syndication, not external YUI. Yes, you are correct, JS syndication will only work if the External.php options are enabled.
|
Quote:
|
No, it does not increase server load (it only affects if external.php can output things for JS syndication). The difference between YUI and JS syndication? YUI is the JS framework used by vBulletin, JS syndication is an external syndication feature of vBulletin.
|
Quote:
|
No, there shouldn't be. It just allows other people to fetch posts from your site, much like RSS.
|
So other websites can fetch my posts?
|
They will see the same things as your RSS feed. There is practically no difference between the two (in the information it gives).
|
Quote:
|
Yes
|
All times are GMT. The time now is 02:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|