防止无响应的脚本错误? [英] Prevent the unresponsive script error?

查看:112
本文介绍了防止无响应的脚本错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的电脑上成功运行了铬源代码。当我将超过5 MB的JSON数据加载到可视化图表中时,它通过在单个选项卡中消耗大约1.5gb内存来显示无响应的脚本错误。我需要防止导致阻塞UI线程的无响应脚本。



1.是否可以延迟无响应的脚本错误?

2.是否可以为活动标签分配更多内存?



我怎样才能使它成为可能?

解决方案

根据我对你不太清楚的问题的理解,我的答案是



没有奇迹这样的东西。如果你试图使用太多内存,最终你会失败。您没有详细描述浏览器的行为方式,也不确定是否错误。如果您对这种情况下的行为有更好的了解,即使没有实施的想法,请解释一下。



-SA

I run the chromium source code successfully on my PC. When I am loading more than 5 mb JSON data into the visualization chart it is showing unresponsive script error by consuming around 1.5gb memory in a single tab. I need to prevent the unresponsive script which causes the blocking of UI thread.

1. Is it possible to delay the unresponsive script error ?
2. Is it possible to allocate more memory for the active tab ?

How can I make it possible ?

解决方案

My answer, based on how I understand your not quite clear questions, is

  1. No
  2. No


There is no such thing as miracle. If you are trying to use too much memory, eventually you get the failure. You did not describe in all the detail how the browser behaves, not sure it's wrong. If you have some better idea on the behavior in such cases, even without having an idea on implementation, please explain it.

—SA


这篇关于防止无响应的脚本错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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