Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Javascript/CSS on the fly

by cees (Curate)
on Dec 04, 2005 at 13:38 UTC ( #513949=note: print w/ replies, xml ) Need Help??


in reply to Re: Javascript/CSS on the fly
in thread Javascript/CSS on the fly

Unfortunately, it is generally recommended that you do not compress js or css files, since there are browsers out there that do not support it properly (1). They support compressed text/html content, but sometimes mess up with any other text based content that is compressed.

But using mod_deflate (or mod_gzip for Apache 1.3) is definately something that most admins should be looking at.

(1) http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B327286


Comment on Re^2: Javascript/CSS on the fly
Re^3: Javascript/CSS on the fly
by belg4mit (Prior) on Dec 05, 2005 at 22:12 UTC
    That's only an issue if it isn't inlined. And if it isn't inlined you can allow for caching better by providing some parameter in the URI to tie it to the page or set of pages it was generated for /applies to.

    --
    In Bob We Trust, All Others Bring Data.

      I recently wrote a mod_perl output filter which sits inside Apache. It intercepts requests for .css files and then "compresses" them on the fly before sending. It's not gzip compression, what it does is strip whitespace, comments, newlines etc. Check it out here: Compressing CSS on the fly

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513949]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2014-09-23 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls