Quantcast
Channel: YUILibrary.com :: Builder
Viewing all articles
Browse latest Browse all 25

Re: Minified CSS

$
0
0
When the YuiLoader is pulling down components, I assume (if fetchCSS is true) that the YuiLoader also pulls down the relevant skin css for the components it is loading. If a cssmodule (e.g. cssgrids), is included in the component list for YUI().use(...), then I assume the configured filter (e.g. "minify") is respected and it pulls down cssgrids-min.css. I guess what I was trying to point out was that it seems inconsistent that the filter is respected for cssmodules, but is not for CSS assets of a js component.

When I referred to "non-skinnable JavaScript components", I mean when "component.skinnable=false". Does the YUILoader attempt to any CSS at all for these modules? Can a JavaScript module have CSS that only contains CSS relevant to the "structure essential to the component" without the need for any "cosmetic aspects such as color, imagery and typography" in a separate skin file? If so, I would assume that a JavaScript component with only CSS essential for the structure of the component should only be present and should follow the -core naming convention?

The reason I ask is: we are having to take ownership of loading CSS (by disabling fetchCSS) to work around a problem with IE where only the first 30 link tags are honoured.

Viewing all articles
Browse latest Browse all 25

Trending Articles