Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 30, 2009 @ 18:27
    Jan Skovgaard
    0

    How to avoid certain files being compressed

    Hi

    Is it possible to avoid, for instance IE6 specific stylesheets, from being added to the compressed stylesheet?

    I need to fix some IE6 issues but when I create my IE conditional comments the stylesheet, which is IE6 specific is added to the compressed style-sheet and therefore my fixes for IE6 are influencing all the good browsers :)

    /Jan

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 30, 2009 @ 18:41
    Douglas Robar
    1

    I use IE6 hacks (like the * hack) rather than separate stylesheets when I've got compression turned on. I don't usually have very many IE6-specific styles so it doesn't add much overhead for even the good browsers.

    cheers,
    doug.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 30, 2009 @ 18:45
    Jan Skovgaard
    0

    That could off course be a possibility. I'll consider using that approach. I think it makes perfect sense actually when one is using compression. Just got a bit puzzled, because I had actually forgotten all about the activation of compression.

    But I'll stick around and see if Peter has another solution or work-around for this. :)

    /Jan

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Sep 30, 2009 @ 20:04
    Peter Dijksterhuis
    0

    Best way to currently stop them from being compressed is to add them to the exclusion-list in the config-file. Like Douglas says, there probably aren't that many specific items. Not compressing those doesn't really hurt that much.

    Offcourse, Douglas' approach will work fine as well too allthough it might need a bit of work if you allready have a IE6-specific stylesheet.

    HTH,

    PeterD

Please Sign in or register to post replies

Write your reply to:

Draft