简体   繁体   中英

How to profile JQuery/JQGrid

I am using JQGrid component for displaying ajax tree grid. With some quantity of data (tree with 200 branches, 2-3 items in each) - the grid begins to freeze in 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.

Is it more likely JQuery, JQGrid or FireFox problem?

Use Firebug or IE 8's profiler to trace down the problem.

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. But start with the profiler.

Probably, you are way over with this. Just linking for referencing purpose. Check out Deep Profiling jQuery Apps . A brilliant jQuery plugin that all you need to know how jQuery is freezing you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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