Wednesday, March 21, 2012

Ajax slow downs page rendering/processing, IE hangs up for some seconds(~10)

I have a grid on my page and i am usingajax. Grid displays just 8 rows of thousands of records, i use a pagingmechanism. I realized that it is so slow at displaying records. Itraced the fetch time of my connection and find out that it is enoughfast. But i realized that my browser hangs up for a while (like 10secs) and thats why i though that data is coming slow, but ajax was theproblem since i saw that everything is OK without an updatepanel.

( problem does notactuallyhappen for the first loa. It gets slower when go further pages. But my query onlyreturns records belongs to that page. I have a custom paging solutionand it takes pagesize and pagenumber as parameter and just works fine. )

The question is how can I make my page rendered or processed or x? inside browser faster without disabling ajax in the page. ?

( Microsoft Ajax Library & Toolkit.. By the way i realized that my views state is almost 10Kb and my page is 70Kb )

hello.

do you have apublic url we can test?


Sorry we don't have one. By the way my page works faster on firefox...

But i can send the pagesource if it make sense


hello.

well, not really. you're saying that it takes a lot of time, so what is really important is seeing the ammount of data that is travelling between client and server and if the time is taking too long to process on the client or in the server. you can always do that yourself with fidder, of course...


well i see... I have already inspected that and i think that's not the problem in my opinion. You know I have also an updateprogresspanel and an animated gif representing loading. Evet that gif stops animating during the the time in topic. I mean loading gets done after maybe 1-2 secs but after that gif stops ie stays like dead body :) for a while


xenonoysf:

vet that gif stops animating during the the time in topic. I mean loading gets done after maybe 1-2 secs but after that gif stops ie stays like dead body :) for a while

Strange because I've found that ie is a little faster than firefox for update panels.

Could you test your app both in ie6 and ie7?

Could you disable/remove google toolbar (or other add-ons) from ie?


unfortunatelly i can't... :(

but i want to share a link of a discussion of the similar problem ...

http://forums.asp.net/t/1065004.aspx?PageIndex=1


hello again.

well, but the problem that is happening there is that there lots of data to be shown, which doesn't happen in your case, right?


hi;

actually yes ... I also tried the solution mentioned there but didn't work out... (= the script block that removes some nodes; i guess clears updatepanel content and enable it rendered back instead removing one by one, or something like that, but i think this only useful when there are lots of rows)

The freezing happens after that block of code works, now i am trying to debug js to find out where that some much time spending...


Did anyone figure out a solution to this, having a nightmare, Ajax fast in everything except IE7, do they not test this sort of thing?!?!?!?!

hello.

well, they do test it but they can't think of everything. nor can anyone, i think...

regarding the problem, I'd start by using fiddler to see where the botleneck is. if it's not on getting teh data, then I'd debug the client code to see what is taking so much time. unfortunately, it seems like thsi problem is not easy to replicate , which means that there's not much anyone that doesn't have the problem can do to help...

No comments:

Post a Comment