Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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.


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513949]
[stonecolddevin]: erix seems pretty good, i listened to "So Many Roads" and it was nice. Not everyone's cup of tea but this guy can absolutely shred, he and the guy from Mastodon are definitely up there: https://www. v=VzhMkSN9dQc
[erix]: ha, good stuff - loud and fast...
[stonecolddevin]: here's some Mastodon for when you have 13 minutes to have your mind blown: https://www. v=4pvfQtUhtNE
[karlgoethebier]: goes to Brownsville one more time..
erix squirrels away the linkies

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-06-22 21:50 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.