[ 4 posts ]

Jason Duley

  • Username: jduley
  • Joined: Fri May 13, 2011 2:03 pm
  • Posts: 8
  • Offline
  • Profile
Tags:

cannot manually load yui2-skin-sam-container-min.css

Post Posted: Fri Sep 02, 2011 4:15 pm
+0-
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 Santini

YUI Contributor

  • Offline
  • Profile

Re: cannot manually load yui2-skin-sam-container-min.css

Post Posted: Sat Sep 03, 2011 6:21 am
+0-
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

Jason Duley

  • Username: jduley
  • Joined: Fri May 13, 2011 2:03 pm
  • Posts: 8
  • Offline
  • Profile

Re: cannot manually load yui2-skin-sam-container-min.css

Post Posted: Sun Sep 04, 2011 10:41 am
+0-
ignore worked great. thank you for your help Alberto.
Jason

Riyaz

  • Username: riyazP
  • Joined: Mon Dec 05, 2011 9:54 pm
  • Posts: 1
  • IRC: Riyaz
  • Offline
  • Profile

Re: cannot manually load yui2-skin-sam-container-min.css

Post Posted: Mon Dec 05, 2011 10:02 pm
+0-
Worked for me too. Learned a lot. Thanks
  [ 4 posts ]
Display posts from previous:  Sort by  
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