PDA

View Full Version : ExtJs 4.1 Rendering too Slow. How to Optimize it



yasirsaleem
21 Mar 2013, 3:28 AM
Hi all,


I am using ExtJs 4.1 with web2py. I have created a group tab panel and there, I am populating comboboxes, radioboxes and checkboxes with json data which I am fetching through web service. My page contains 9 panels which contains different form fields.


I have placed all my code within success block of Ajax function as follows:




Ext.onReady(function () {
Ext.Ajax.request({
url: '../admit/do_admit.json',
success: function(response){
var data = Ext.decode(response.responseText);
......
my code
.......
}
});
});





My program is running fine but the problem is that it is taking too much time, i.e., 5-8 seconds for first time rendering. After then it is running fine. I have also searched a lot of places for optimize rendering but did not find any useful thing.


I shall be thankful if anyone can help me in optimizing my rendering or even can refer me the post if the same enquiry has been resolved already.


Thank you in advance.


Yasir

scottmartin
21 Mar 2013, 5:03 AM
Duplicate: http://www.sencha.com/forum/showthread.php?259400