The application I am currently working on has excessive CSS styling and we seemed to have reached some sort of limitation with IE8/9 and how much CSS it can load. At some point it stops interpreting the CSS therefore breaking style on some pages. We are using Combres to compress/minify the files which is causing such large CSS files. This seems to happen in the 400KB-450KB range (Yes, I know that is way too much for any CSS).
So my question: What is the maximum size for a single CSS file in IE?
Also would enabling GZIP compression help? IIS has dynamic/static compression enabled and it seems to work in Chrome but not IE.
You are right with the file size being the issue (although there is also a maximum amount of selectors IE will parse). Compression won't help beyond the minification you are already doing, but splitting the CSS into two files will solve your problem.
All of the limitations are on a per-file basis. Consider separating out the CSS by feature set and only loading the CSS when needed.
For IE up to IE9 the css file size is max 288kb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With