You are not logged in.
I have multiple xinha editors on my page, about 10 to be exact, and it is taking a heck of a time to render them all...
any suggestions on how i can improve the performance?
I have tweaked the my_config.js file to do to loop through a variable to find out how many xinha_editor object need to be made.
var editorString = "[";
for(icount=0; icount<=numTextAreas; icount++)
{
if(editorString.length > 1)
editorString = editorString + ",";
editorString = editorString + "'textArea" + icount + "'";
}
editorString = editorString + "]";
xinha_editors = xinha_editors ? xinha_editors :
eval(editorString);
Offline
I would guess that whatever editor you are using, 10 instances will do a major CPU penalty. Maby there are some other more practical way of doing your page, with less editors. Maby activate the editors as you need them, or if you need them.
If you have 10 textareas which needs edit, maby a user would only need to edit one textarea - which makes rendering the other 9 meaningless.
Maby you get some ideas of solving this from more people aswell.
Mvh,
Kim Steinhaug
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.steinhaug.no - www.easywebshop.no - www.easycms.no
Last edited by kimss (2006-02-27 19:19:59)
Offline
I'm having this same problem. I need multiple editors on a single page and it really slows down the page load. Does anyone have a solution that makes this scalable? Thanks.
Offline
Hi Guys,
I wish I was updating this ticket with some sort of magical formula I’ve stumbled upon, but unfortunately I’m not.
I’m simply dropping a note to say that I, too, am experiencing the same problems you are describing.
I don’t let 10 editors or anything even close to as high as that, but when I have even 2 on the page, I find it really slows down the page load.
Sometimes it seems like it’s the toolbar buttons that are causing the lag (I’m using one of those snazzy Xinha styles), but then again, maybe it’s not.
My users encounter pages prior to the Xinha text editor loading. Is there some way I can pre-load the script and all the toolbar images so that when the Xinha editors do load, they load much quicker?
Any ideas or suggestions would be greatly appreciated.
Cheers,
-- Robert
Offline