GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can you optimize CSS? (https://gfy.com/showthread.php?t=939690)

Brujah 11-21-2009 11:15 AM

Can you optimize CSS?
 
I've been modifying and modifying the css and html for a site. I think there might be a lot of extra css that I'm not using anymore. I'd like to remove it. Is there a tool to automate this?

SayWhut 11-21-2009 01:25 PM

This tool can help tweak up the css:-

http://code.google.com/speed/page-speed/

fris 11-21-2009 01:45 PM

dont know of any tool other than to delete the lines not in use

Paul&John 11-21-2009 01:58 PM

Quote:

Originally Posted by SayWhut (Post 16573609)
This tool can help tweak up the css:-

http://code.google.com/speed/page-speed/

Going to try this, thanks for sharing!

Brujah 11-21-2009 04:26 PM

Thank you. Page Speed said I had about 20% of unused css.

harvey 11-21-2009 06:57 PM

Quote:

Originally Posted by Brujah (Post 16573896)
Thank you. Page Speed said I had about 20% of unused css.

don't pay much attention to that, most of the times extreme CSS optimization implies that you'll go crazy every time you need to edit the file again.

Anyway, if you really, really, REALLY need it, do the following:

- be sure to reduce all the elements sharing the same definitions resetting them on start. ie, if your images are going to have no borders, just img{border:0}, html{margin:0;}, h1, h2, h3{color:#333;}, and so on.

- use any of tidy service out there. Personally, I like http://www.cleancss.com/ since it has some control to balance readability and size


All times are GMT -7. The time now is 10:29 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123