Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Javascript/CSS on the fly

by cees (Curate)
on Dec 04, 2005 at 13:38 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://513949]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-28 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found