You are not logged in.
This plugin automatically stores a copy of your style sheet(s) as a static file. Static files are served several orders of magnitude faster than PHP files (200 times faster, in my own tests on a FastCGI-based server).
I originally wrote this plugin for a website that had two style sheets for every page (one for printing) and the built-in method of serving both style sheets cost as much CPU time and memory as serving the page itself. The server load for this website was reduced by 50% after using this plugin.
Changelog:
Offline
Genius. Nice one, Ruud. I wonder if stm_javascript can be given the same treatment?
Last edited by Bloke (2008-01-01 20:36:24)
The smd plugin menagerie — for when you need one more gribble of power from TXP.
TXP Builders – finely-crafted code, design and txp
Offline
beautious! will test this out when i can. but this is definitely gonna be another staple for my txp installations.
Offline
Great, the must have thing, indeed.
Cheers!
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
Oh sorted Ruud. :)
Last edited by thebombsite (2008-01-02 03:36:24)
Stuart – the bombsite – Just Another Theme
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Thanks for this Rudd… but having a small problem getting it to work with a template by Reid…
Plugin is installed, activated, and the css files have been created.
This is what is currently in the page head referring to css:
bc..
<style type=“text/css” media=“screen”>
@import url(”<txp:css n=“grs1_primary” />”);
</style>
<txp:hide> —————————————————————————————-
Conditional comment to serve style sheet to IE 6.0 and under
————————————————————————————— </txp:hide>
<!—[if lt IE 7]>
<style type=“text/css” media=“screen”>
@import url(”<txp:css n=“grs1_ie” />”);
</style>
<![endif]—>
Simply replacing the <txp:css with your tag doesn’t work – I end up with no css being used at all.
Can you explain what I’m doing wrong?
Many thanks
Offline
Will do Rudd, thanks.
Offline
Fantastic plugin! Thanks Ruud. Any chance of expanding this to the JS files in stm_javascript?
TXP Tips – TXP Minima – TXP Minima Photoblog – My page – Pro Tennis Jobs
TXP Builders – finely-crafted code, design and txp
Offline