Archived

This topic is now archived and is closed to further replies.

  • 0

Remove Unused Css

Question

Posted · Report post

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

5 answers to this question

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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