Posted by kyle_mathews on February 10, 2009 at 6:53pm
Jump to:
| Project: | GeSHi Filter for syntax highlighting |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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?
Comments
#1
Correction, the overly large file is geshifilter-languages-c4204877.css, geshifilter.css is only 818 bytes.
#2
Enable CSS aggregation at Administer > Site configuration > Performance.
#3
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
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
you're welcome
#6
Automatically closed -- issue fixed for 2 weeks with no activity.