IE9中有CSS文件大小限制吗? [英] Is there a CSS file size limit in IE9?

查看:101
本文介绍了IE9中有CSS文件大小限制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试研究IE9中的文件大小限制.关于一个现有的存在很多轶事链接(通常为288KB的限制链接),但是我找不到关于它们的任何适当的文档.说它存在的人与说它不存在的人大约一样多.

I was trying to research a file size limit in IE9. There are many anecdotal links about one existing (mostly 288KB limit ones), but I could not find any proper documentation on any of them. There were approximately as many people saying that it exists as people who said it does not exist.

双方的一些链接:

认为它存在:

认为它不存在:

  • https://makandracards.com/makandra/10883-limitations-you-should-be-aware-of-when-internet-explorer-9-parses-css-files
  • https://spaceninja.com/2015/03/31/ie-css-limits/

Microsoft官方文档没有说明此限制,但也没有反驳它的存在.我制作了一个测试文件,该文件是1条CSS规则,很多空白将其扩展为300KB,然后是第二条规则.第二条规则肯定适用.我仍然对这个288KB限制的概念来自何处感到困惑.

The official Microsoft documentation does not state this limit, but it does not refute its existence either. I made a test file that was 1 CSS rule, a lot of white space to get it to 300KB, and then a second rule. The second rule definitely was applied. I'm still confused where this notion of this 288KB limit came from though.

鉴于现在是2018年,应该就此限制达成一些共识,对吧?有人知道此限制是否存在吗?如果是这样,我想要某种形式的正式证明.如果不是这样,我至少想知道这个想法是从哪里来的.

Given that it is now 2018, there should be some consensus on this limit, right? Does anyone know if this limit exists or not? If it does, I'd like some kind of formal proof of it. If it doesn't, I'd at least like to know where the idea came from.

请不要将其标记为重复项,除非您给我一个链接,该链接明确给出了有关此限制的含义或证明不存在的限制.

Please do not mark this as a duplicate unless you give me a link that definitively gives some source as to what this limit is, or proves that it doesn't exist.

推荐答案

经过广泛的测试和研究,我必须得出结论,IE9没有这样的限制.为什么在互联网上有很多关于它的谣言,我没有头绪,但是我找不到关于这一事实的任何官方文件.关于此事实的任何建议都不受堆栈溢出评论或随机博客文章的支持.制作了超过288KB的自己的CSS,并看到它成功加载了所有规则之后,我看不到这个限制是如何存在的.这些人可能达到了选择器限制,但是我无法进一步调查,因为不存在超过288KB的文件,没有达到选择器限制,并且据称未完全加载到IE9中.我希望未来的开发人员能够看到这个问题,并且不要像我一样在随机的IE9花絮上浪费太多时间.

After extensive testing and research, I have to conclude that no such limit exists for IE9. Why there are many rumors on the internet about it, I have no clue, but I could not find any official documentation of the fact. Any suggestion of this fact has just been unsupported Stack Overflow comments or random blog posts. After making my own CSS that was over 288KB, and seeing it successfully load all rules, I don't see how this limit could exist. It's possible these people were hitting the selector limit, but I can't investigate further as there are no files that exist that are over 288KB, don't hit the selector limit, and are purported to not fully load in IE9. I hope future developers can see this question, and not waste as much time on this random IE9 tidbit as I have.

这篇关于IE9中有CSS文件大小限制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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