Rich / simple text editors cause long loading times
I'm making a document type (Umbraco 4.0.3) that has 12 rich text editors on it. At first, I had created the properties of type "Textstring" but it turned out that the client needed more advanced editing. So I turned them all into RTE's.
But imagine my horror when suddenly it takes 30+ seconds to load a document in the backend! I turned them all into Simple Text editors as a compromise, but it still takes 10+ seconds to load. What's going on? When they're textrstrings, the loading time is about a second, which is just fine.
I once worked on another CMS system where we had a similar problem (using a 3rd party .NET WYSIWYG component) - we had to allow for developers to make them "lazy-loading" by rendering the resulting HTML with a "Click to edit" button, that turned the field into a WYSIWYG when clicked only. There was a lot going on client-side that we couldn't circumvent in any way, so we had to do this.
I don't know how much initialization TinyMCE does, but it sounds like the same kind of scenario...
Thanks for your input guys. I'm glad to tell you that this has now been fixed and wasn't a problem with Umbraco but with a sucky connection to a remote database. I moved everything over to my local machine now and it's smooth as a baby's bottom now!
Rich / simple text editors cause long loading times
I'm making a document type (Umbraco 4.0.3) that has 12 rich text editors on it. At first, I had created the properties of type "Textstring" but it turned out that the client needed more advanced editing. So I turned them all into RTE's.
But imagine my horror when suddenly it takes 30+ seconds to load a document in the backend! I turned them all into Simple Text editors as a compromise, but it still takes 10+ seconds to load. What's going on? When they're textrstrings, the loading time is about a second, which is just fine.
Hi Sebastiaan,
I once worked on another CMS system where we had a similar problem (using a 3rd party .NET WYSIWYG component) - we had to allow for developers to make them "lazy-loading" by rendering the resulting HTML with a "Click to edit" button, that turned the field into a WYSIWYG when clicked only. There was a lot going on client-side that we couldn't circumvent in any way, so we had to do this.
I don't know how much initialization TinyMCE does, but it sounds like the same kind of scenario...
/Chriztian
Sebastiaan, have you viewed the HTML source of the page/frame (in the back-office)? Definitely sounds like heavy JavaScript loading/initialisation!
Thanks for your input guys. I'm glad to tell you that this has now been fixed and wasn't a problem with Umbraco but with a sucky connection to a remote database. I moved everything over to my local machine now and it's smooth as a baby's bottom now!
is working on a reply...