| Page 1 of 1 | [ 4 posts ] |
|
hello,
I am deploying yui v3 on a site that runs HTTPS. Because of this, I am making all the files my page needs accessible on the web server and explicitly loading them (trying to eliminate HTTP calls to yui.yahooapis.com when using https). For some reason, three SAM skin CSS files always load from yui.yahooapis.com. //these are on my page <link type="text/css" rel="stylesheet" href="/js/yui3/build/yui/yui2-skin-sam-paginator-min.css" /> <link type="text/css" rel="stylesheet" href="/js/yui3/build/yui/yui2-skin-sam-container-min.css" /> <link type="text/css" rel="stylesheet" href="/js/yui3/build/yui/yui2-skin-sam-datatable-min.css" /> the tags above are in fact loading these three CSS files, but they are also being loaded again for some other reason over the net to yahooapis (they are loading twice according to firebug). Any idea how I can eliminate the calls to yui.yahooapis.com and strictly load these from my web server? Thanks to anyone that can offer some advice. - jason |
Alberto SantiniYUI Contributor
|
Hello Jason.
You may use "ignore" property. For instance, YUI({ 'yui2': '2.9.0', '2in3': '4', 'ignore': [ 'yui2-skin-sam-container', 'yui2-skin-sam-menu', 'yui2-skin-sam-button', 'yui2-skin-sam-calendar', 'yui2-skin-sam-datatable', 'yui2-skin-sam-layout', 'yui2-skin-sam-slider', 'skin-sam-widget-base', 'skin-sam-tabview', ... Hope that helps, Alberto P.S.: http://yuilibrary.com/yui/docs/api/clas ... rty_ignore |
|
ignore worked great. thank you for your help Alberto.
Jason |
|
Worked for me too. Learned a lot. Thanks
|
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group