I am trying to compress my CSS code on the server for faster load times, BUT I would still like to be able to USE it locally in Dreamweaver (so dreamweaver can actually DISPLAY my page when I am in split view).
I have tried both MiniFy as well as this method: http://www.ethanandjamie.com/blog/85-php-gzip-css-files and a done loads more re开发者_如何转开发search.
The problem is that these scripts do not allow dreamweaver to DISPLAY the CSS file while working in design view. So everything is not styled.
Anyone have any suggestions or run into this before?
Personally, I would store the file uncompressed and compress the file dynamically upon request. For instance, your "CSS" file could be "myCss.php", which would be a php page that would compress the file (and possibly cache it).
This way, you never need to deal compressing your CSS files, and dreamweaver has no reason to display them oddly.
精彩评论