geshi.css is over 150kb

kyle_mathews - February 10, 2009 - 18:53
Project:GeSHi Filter for syntax highlighting
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is there a way to slim down the geshi.css file? I love what it does, it's perfect for my semi-geeky community site that occasionally posts code snippets but the size of the css file is killing me. Is there something I can do to slim down the css file?

#1

kyle_mathews - February 10, 2009 - 18:55

Correction, the overly large file is geshifilter-languages-c4204877.css, geshifilter.css is only 818 bytes.

#2

Xano - February 10, 2009 - 19:08

Enable CSS aggregation at Administer > Site configuration > Performance.

#3

soxofaan - February 10, 2009 - 19:44

Did you enable all possible languages? are all languages in use? I've never heard of such a use case before ;) I would only enable the languages that are in use.

I don't expect the suggestion of #2 will give you much gain, but you can try.

You could also consider using the option "Inline CSS style attributes" instead of the managed CSS stylesheet. That way you don't have to serve a large CSS file, but every page will be bigger of course.

#4

kyle_mathews - February 11, 2009 - 05:57

I had enabled all possible languages

Killing off the 50 or 60 not needed languages dropped my css file size down to a much more managable ~40kbs.

Thanks for the help.

#5

soxofaan - February 11, 2009 - 08:28
Status:active» fixed

you're welcome

#6

System Message - February 25, 2009 - 08:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.