Make one stylesheet

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
Iamdbat
Posts: 66
Joined: Sun Oct 18, 2009 1:47 am

Make one stylesheet

Post by Iamdbat »

I was using Yslow from Yahoo and had a lightbulb moment

Can anyone enlighten me as to what is the best way of going about amalgamating the Style.css Sheet and the 'Blue'.css style Sheet into one single style sheet?

I believe this will make my site load faster
Painstik
Posts: 122
Joined: Sun Jul 19, 2009 1:19 pm
Location: Croatia

Re: Make one stylesheet

Post by Painstik »

You could do that, transfer all Blue.css lines into Styles.css, but do you think that amalgamating only those two files you will solve your problem with Yslow? If you want to do it, you should do amalgamating with all css and javascript files you have, so you reduce from 30 files to 2, and so does http requests.

Also you should do CSS sprites, cos there are plenty of small images which could be combined to one, and so reduced number of http requests.

Reduce the number of css lines by combining similar ones, use default styles (a, p, h2, h3, h4...) as much as possible. (example: Left and right side are divided, you could combine them to remove 1/2 of this css code).


To get better score on Yslow you will have to do a lot of work, cos Interspire didn't focus on design and optimization of their templates.
Need custom coding for Interspire Shopping Cart? Contact me
Tony Barnes
Posts: 744
Joined: Thu Jun 18, 2009 8:59 am

Re: Make one stylesheet

Post by Tony Barnes »

I looked into CSS sprites a bit ago, really neat idea, but really couldn't be bothered for ISC..!
Painstik
Posts: 122
Joined: Sun Jul 19, 2009 1:19 pm
Location: Croatia

Re: Make one stylesheet

Post by Painstik »

I read somewhere a "tip" for optimizing...

Remove all unnecessary tab spaces and comments from your html and css files :)
Need custom coding for Interspire Shopping Cart? Contact me
Tony Barnes
Posts: 744
Joined: Thu Jun 18, 2009 8:59 am

Re: Make one stylesheet

Post by Tony Barnes »

Sounds like a plan :roll: :lol:
Iamdbat
Posts: 66
Joined: Sun Oct 18, 2009 1:47 am

Re: Make one stylesheet

Post by Iamdbat »

Painstik wrote:You could do that, transfer all Blue.css lines into Styles.css, but do you think that amalgamating only those two files you will solve your problem with Yslow? If you want to do it, you should do amalgamating with all css and javascript files you have, so you reduce from 30 files to 2, and so does http requests.

Also you should do CSS sprites, cos there are plenty of small images which could be combined to one, and so reduced number of http requests.

Reduce the number of css lines by combining similar ones, use default styles (a, p, h2, h3, h4...) as much as possible. (example: Left and right side are divided, you could combine them to remove 1/2 of this css code).


To get better score on Yslow you will have to do a lot of work, cos Interspire didn't focus on design and optimization of their templates.

So .... how would you combine all the Java Files - would you know?
CharlieFoxtrot
Confirmed
Confirmed
Posts: 413
Joined: Sun Aug 09, 2009 1:23 pm

Re: Make one stylesheet

Post by CharlieFoxtrot »

Iamdbat wrote:I was using Yslow from Yahoo and had a lightbulb moment

Can anyone enlighten me as to what is the best way of going about amalgamating the Style.css Sheet and the 'Blue'.css style Sheet into one single style sheet?

I believe this will make my site load faster
It certainly makes things easier when editing a SINGLE stylesheet instead of two.
ISC 4.0.7

"... and let's be honest that whole "by design" thing is getting old too."
Post Reply