[英]Parsing very large JSON strings in IE causing problems
I'm parsing a 2MB JSON string in IE8. 我在IE8中解析2MB JSON字符串。 The
JSON.Parse
line is taking a little while to return and IE8 shows a message asking the user if they want to abort the script. JSON.Parse
行需要一段时间才能返回,并且IE8显示一条消息,询问用户是否要中止脚本。
Is there any way I can suppress this message? 有什么办法可以禁止显示此消息? (or somehow speed up JSON.Parse)
(或以某种方式加快JSON.Parse的速度)
I know about Microsoft KB175500 , however this is not suitable as my target users will not have administrator access to make the registry modifications on their SOE machines. 我知道Microsoft KB175500 ,但是这不适合我的目标用户,因为他们的目标用户将没有管理员权限,无法在其SOE计算机上进行注册表修改。
I had this same question. 我有同样的问题。 Apparently there is no way to suppress the message, but there are tricks to make IE think it's still working by using an asynchronous iteration pattern (dead link, view comments below).
显然没有办法抑制该消息,但是有一些技巧可以使IE通过使用异步迭代模式使它认为它仍在工作(无效链接,请在下面查看评论)。
This comes from an answer to one of my questions: loop is too slow for IE7/8 这来自对我的一个问题的解答: IE7 / 8的循环太慢
If the browser is unhappy with how long the JSON parser is taking, there are only four choices here I know of: 如果浏览器对JSON解析器需要花费多长时间不满意,那么我在这里只有四个选择:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.