This is a migrated thread and some comments may be shown as answers.

Response end delay

3 Answers 102 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
rwozniak
Top achievements
Rank 1
rwozniak asked on 10 Jul 2008, 09:02 PM
I recently switched over from the old controls to the ASP.NET ones. What I'm seeing though is that the AJAX performance is much slower with the new ones.

I am using the RadAjaxManager to load portions of my page...sometimes large portions. In cases where I load a large portion of the page I see the page appear behind my loading panel, and then it takes about another 7 seconds (in IE) for the loading panel to go away and the client-side response end handler to get called.

The markup returns quickly and is rendered by the browser within 3 seconds, but what on Earth is going on the other 7 seconds is a mystery. I'm guessing that there is a bunch of client-side script running, but this is a reaaaally long delay. With the old RadAjaxManager it was much quicker.

Any suggestions around what I can do to debug it, and try to figure out why?

By the way, the delay is less than half in Firefox of what it is in IE.

Thanks,
Ross

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Jul 2008, 06:10 AM
Hello Ross,

Generally RadAjaxManager for ASP.NET AJAX is based on Microsoft AJAX and the manager will insert UpdatePanels on the fly. Can you show us an example where we can reproduce this behavior? Do have tables in the updated areas? Can you try to disable CSS to see if there are any differences?

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rwozniak
Top achievements
Rank 1
answered on 11 Jul 2008, 01:46 PM
Unforuntately it would be difficult to put together a sample, as it is a rather complex framework that builds the page. What I can tell you though is that, although there are very few tables in the layout, I don't think the delay has anything to do with the browser rendering the layout.

As I mentioned, I see the page lay out completely behind my loading panel, so it appears that the browser has taken care of that piece already. I also see only one minor layout shift during the delay period. The grid header has some white space at the very right side (about the width of a scroll bar), and the header columns don't properly line up with the data columns during this period. At the very end of the response the headers jump to the right (the white space goes away) as it appears the grid script has determined that the scrollbars will be necessary. At this point the grid header columns do properly line up with the data columns. This shifting effect is not pretty, but that is probably a bug for another day.

I'm not sure what the best way to disable CSS is, but I did remove the CSS files from the page and it did go somewhat faster. Instead of a 7 second delay it appeared to be more like 4 seconds.
0
Vlad
Telerik team
answered on 11 Jul 2008, 02:02 PM
Hi Ross,

In this case you can set RadAjaxManager EnablePageHeadUpdate to false and the manager will not insert any css files in the header - you can register these permanently. Can you please check the size of the response also? You can use FireBug for example.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
rwozniak
Top achievements
Rank 1
Answers by
Vlad
Telerik team
rwozniak
Top achievements
Rank 1
Share this question
or