Last post Jan 26, 2011 02:09 PM by WayneFulcher
Jan 25, 2011 05:37 AM|WayneFulcher|LINK
I was wondering if anyone could tell me why any .aspx page that I drop an Ajax HTML editor on will then become painfully slow to load and update.
And more importantly is there anything that can be done about it to speed it up?
I am using VS2010 and targeting ASP.Net 4.0 web application and I am using the AjaxControlToolkit version 4.1.40412.2.
Thanks for any advice you can give me.
Jan 25, 2011 06:28 AM|stanly|LINK
Hope this helps...
Jan 25, 2011 03:28 PM|WayneFulcher|LINK
So if I am understanding you right then the answer is either switch to ckEditor or just live with how slow it is?
hmmmmm anyone else have any ideas?
From reading many other posts it sounds as if no one else has a solution either. The funny thing is my page (if I put that control on it) is a lot slower than their example page for the html editor.
Jan 25, 2011 04:06 PM|WishStar99|LINK
What do you have on your page? It's not that slow to me ~ 1-2 seconds to load a page with the editor. What you can do is, shorten the ID names on that page. and if it's still slow remove the updatepanel if it contains one.
Jan 26, 2011 12:01 AM|WayneFulcher|LINK
Not sure whats up with the ID lengths but I would say all of my id values for my controls are 15 charcaters or less so I dont know if that is considered long or not.
I really have very very little on my page.
Basically it an admin page to let them edit records in a CalendarEvents table.
So to start with there is just a <table> with a repeater inside of it to list the records. (very few records at that, like 10 or so.
Then when they wish to edit one (which is where the HTML editor will come in) I have a ModalPopupEntender with a plain Panel (I dont have any UpdatePanels on my page). And thats about it.
If I remove the HTML Editor control, leaving all other controls and code the same, the page seems to load in less than 1 second. When I add the HTML editor it takes 6 - 8 seconds.
Which does not sound like much but it takes that long every time they have to click in and out to add,edit additional records.
Jan 26, 2011 01:11 AM|bruce (sqlwork.com)|LINK
did you use one modalpopupextender and html editor for all the rows, or 1 popup/editor per row?
Jan 26, 2011 01:40 AM|WayneFulcher|LINK
I only have 1 modalpopupextender and 1 htmleditor
when they first get to aspx page the modalpopupext is not showing. all there is is a table with the repeater bound to a datasource.
each record has a linkbutton with a onclick event that will prepare the controls on the panel with the htmleditor then the event will call the modalpopupetenders.Show() method to make it show with the selected records data already filled into the controls.
Jan 26, 2011 03:10 AM|chetan.sarode|LINK
Try the new AJAX library and use the CDN to download the related reference:
Jan 26, 2011 02:09 PM|WayneFulcher|LINK
Thanks chetan, the link that gave me the information for setting caching and compression as well as Scripting="Release" sure seemed to help. I would say it cut my response time in at least half so I think that will for sure make it nicer to use.
For those of you reading this I will repeat the code samples given in the other links so you may not have to dig as much.
Make sure you have the following in your web.config file:
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
also when near the end of development and you are testing for performance change your compilation settings to turn debug off like so:
<compilation debug="false" batch="false" targetFramework="4.0">
or you can turn the scriptmanagers script mode to "release as so:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" EnableCdn="true" runat="server" ScriptMode="Release">