Jump to content
zouleo

Remove Unused Css

Recommended Posts

zouleo    1
zouleo

According to this report

http://gtmetrix.com/reports/www.skolappar.nu/PDR85YuA

114.4kB of 162.5kB of the css-file is not used by the current page.

I understand that some of the css might be used by other users of Pagelines. But 114 of 162 seems to be a lot. I'm already combining and gzipping this file, but I'm thinking it would be great if unused CSS could be removed completely. Would that be possible?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

Well the CSS may not be need on that page but will be on others. However, you're trying to remove unused CSS for performance reasons, but you're using Shared Hosting ?

Running your site through Reverse IP, you habe over 180 websites on the same server, if you're serious about your sites performance then I recommend using a VPS or Dedicated Server.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
zouleo    1
zouleo

Thanks for the hint. I will move this site to a dedicated server within a few days.

Now, to the original question, is there anything I or you can do to make the CSS-file smaller?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Unless you are sending hundreds of kb of css then it shouldn't really matter.

As far as I am aware, using a dynamic CSS changer would destroy the caching ability of the browser resulting in higher transfers.

Therefore, I don't think there is anything we or you can do, but I will ask for you and reply here when I have more information.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
zouleo    1
zouleo

Thank you.

I was more thinking in the lines that it should be possible to remove old CSS that is actually not used anywhere.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Thank you.

I was more thinking in the lines that it should be possible to remove old CSS that is actually not used anywhere.

It is used somewhere, thats why its in there!

Disable any sections you dont use, including the core sections.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×