Updated.. See end.
Thanks kh99. I have the following settings, which looks ok to me:
Use Remote YUI: Yahoo
Custom Remote YUI Path: ""
Custom Remote YUI Combo Path: ""
Here is that section of code and it looks ok, as far as I can tell:
if (typeof YAHOO === 'undefined') // Load ALL YUI Local
{
document.write('<script type="text/javascript" src="clientscript/yui/yuiloader-dom-event/yuiloader-dom-event.js?v={vb:raw vboptions.simpleversion}"><\/script>');
document.write('<script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v={vb:raw vboptions.simpleversion}"><\/script>');
var yuipath = 'clientscript/yui';
var yuicombopath = '';
var remoteyui = false;
}
else // Load Rest of YUI remotely (where possible)
{
var yuipath = '{vb:stylevar yuipath}';
var yuicombopath = '{vb:stylevar yuicombopath}';
var remoteyui = true;
if (!yuicombopath)
{
document.write('<script type="text/javascript" src="{vb:stylevar yuipath}/connection/connection-min.js?v={vb:raw vboptions.simpleversion}"><\/script>');
}
}
------ Updated -----
Php is not my strong suite, but this looks like if I have "Use Remote YUI: Yahoo" defined, yuipath does not get assigned in the else statement. There is an assignment, but if it is empty, it assigns nothing. So where does it get assigned to the Yahoo CDN?
Should I remove this.. "Use Remote YUI: Yahoo"? Thanks
|