IE8 / 9 - 对CSS文件的最大字节数 [英] IE8/9 - Maximum bytes for CSS file

查看:947
本文介绍了IE8 / 9 - 对CSS文件的最大字节数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在对应用程序有过多的CSS样式,我们似乎已经达成某种与IE8 / 9限制多少CSS就可以加载的。在某些时候它停止间preting CSS的突破,因此风格上的一些网页。我们正在使用Combres对COM preSS /缩小,这是造成如此大的CSS文件的文件。这似乎在400KB-450KB范围内发生的(是的,我知道这是太多任何CSS)。

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).

所以我的问题:什么是IE浏览器中的一个CSS文件的最大尺寸是多少?

So my question: What is the maximum size for a single CSS file in IE?

也将启用gzip COM pression帮助? IIS启用了动态/静态COM pression,似乎在Chrome,但不是IE工作。

Also would enabling GZIP compression help? IIS has dynamic/static compression enabled and it seems to work in Chrome but not IE.

推荐答案

您是正确的文件大小是这个问题(虽然也有IE浏览器将解析选择的最大量)。 COM pression不会帮超越你已经做了微小的,但分裂成CSS两个文件将解决你的问题。

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.

所有的限制是对每个文件为基础。考虑功能设置分离出CSS和仅在需要时加载CSS。

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.

这篇关于IE8 / 9 - 对CSS文件的最大字节数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆