-
AuthorPosts
-
mtense Friend
mtense
- Join date:
- May 2011
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
May 3, 2012 at 3:38 pm #176692ie8 will only include 31 css files (directly) and a vanilla installation of the JA templates like JA Social uses up most of them. I learned this the hard way. Installing and mild configuring of JA Social with modules JA Slideshow and JA Top Panel resulted in 27 css files.
<link rel=”stylesheet” href=”/templates/system/css/system.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/system/css/general.css” type=”text/css” />
<link rel=”stylesheet” href=”/modules/mod_jaslideshow/assets/themes/default/style.css” type=”text/css” />
<link rel=”stylesheet” href=”/modules/mod_jaslideshow/assets/themes/social/mod_jaslideshow.css” type=”text/css” />
<link rel=”stylesheet” href=”/modules/mod_jatoppanel/assets/style.css” type=”text/css” />
<link rel=”stylesheet” href=”/plugins/system/jat3/jat3/base-themes/default/css/addons.css” type=”text/css” />
<link rel=”stylesheet” href=”/plugins/system/jat3/jat3/base-themes/default/css/layout.css” type=”text/css” />
<link rel=”stylesheet” href=”/plugins/system/jat3/jat3/base-themes/default/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”/plugins/system/jat3/jat3/base-themes/default/css/usertools.css” type=”text/css” />
<link rel=”stylesheet” href=”/plugins/system/jat3/jat3/base-themes/default/css/css3.css” type=”text/css” />
<link rel=”stylesheet” href=”/plugins/system/jat3/jat3/base-themes/default/css/menu/mega.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/css/typo.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/css/layout.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/css/css3.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/css/menu/mega.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/css/mod_jatoppanel.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/themes/grey-color/css/com_agora.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/themes/grey-color/css/com_community.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/themes/grey-color/css/color.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/themes/grey-color/css/css3.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/themes/grey-color/css/menu/mega.css” type=”text/css” />
<link rel=”stylesheet” href=”/templates/ja_social/themes/grey-color/css/mod_jatoppanel.css” type=”text/css” />
<!–><link href=”/plugins/system/jat3/jat3/base-themes/default/css/template-ie.css” type=”text/css” rel=”stylesheet” /><!–>
<!–><link href=”/templates/ja_social/css/template-ie.css” type=”text/css” rel=”stylesheet” /><!–>
<!–><link href=”/templates/ja_social/themes/grey-color/css/template-ie.css” type=”text/css” rel=”stylesheet” /><!–>
<!–><link href=”/templates/ja_social/css/template-ie8.css” type=”text/css” rel=”stylesheet” /><!–>Add jquery and you are at 28. This doesn’t leave much room for module specific css includes.
The optimization settings may help with this (haven’t checked yet), but it can be a problem for debugging. Beware!
It would be nice if JA could figure out how to nest the css files, so that for example a theme or jat2 uses a few css files instead of 6 or 7.
Hope this help someone. Cheers!
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
May 8, 2012 at 11:47 am #452025Thanks for the tip!
I do think JA does so many CSS files in order to make editing simpler for the user. You are always free to compress your own CSS files once the site is completed.hobbykwekers Friendhobbykwekers
- Join date:
- March 2012
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 20
- Thanked:
- 6 times in 1 posts
May 8, 2012 at 2:47 pm #452047Joining, linking and compressing the files is not always an option. Linking, joining and compressing my website with JomSocial breaks my website.
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
May 8, 2012 at 7:35 pm #452079One easy way to trim file size is to take out comments and white space for the final version of the CSS file. Comments, white space, and putting one declariation per line are all great ways for developers to organize and write their CSS. But once you’re ready to publish that file, make a copy of it and strip all the comments and white space from the copy. Upload that new slim file to your server. After all, browsers don’t care about your CSS comments and white space. If you ever need to troubleshoot, rewrite, or add to your CSS, you can do so in your ‘working copy’. Then make another slimmed down copy to republish. CSS Tweaking is a great way to strip white space and comments. See this article here for some tools to help you out.
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by Blaine 12 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum