简体   繁体   English

如何剖析JQuery / JQGrid

[英]How to profile JQuery/JQGrid

I am using JQGrid component for displaying ajax tree grid. 我正在使用JQGrid组件显示ajax树形网格。 With some quantity of data (tree with 200 branches, 2-3 items in each) - the grid begins to freeze in FireFox. 有了一定数量的数据(带有200个分支的树,每个分支中有2-3个项目),网格开始在FireFox中冻结。 Then I get a window asking whether to stop the script or continue. 然后我得到一个窗口,询问是停止脚本还是继续。

What is the prescription to debug and resolve this? 调试和解决此问题的处方是什么? I can debug my code, but I am not sure how to debug js libraries and their nuances. 我可以调试我的代码,但不确定如何调试js库及其细微差别。

Is it more likely JQuery, JQGrid or FireFox problem? 更有可能是JQuery,JQGrid或FireFox问题吗?

Use Firebug or IE 8's profiler to trace down the problem. 使用Firebug或IE 8的探查器来查找问题。

Note that jqGrid got significantly faster if you enable the gridview option in jqGrid 3.5+, though I don't think that works for trees. 请注意,如果您在jqGrid 3.5+中启用gridview选项 ,则jqGrid的速度将显着提高,尽管我认为这不适用于树木。 But start with the profiler. 但是从分析器开始。

Probably, you are way over with this. 可能您已经结束了。 Just linking for referencing purpose. 只是链接以供参考。 Check out Deep Profiling jQuery Apps . 查看Deep Profiling jQuery Apps A brilliant jQuery plugin that all you need to know how jQuery is freezing you. 一个出色的jQuery plugin ,您需要了解jQuery如何冻结您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM