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

Slow loading

4 Answers 174 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
viex
Top achievements
Rank 1
viex asked on 06 Nov 2007, 09:31 AM
Hi,

When I have, let's say, 6 or 7 RadEditor in a page (WCM), the loading of the page is quite slow : 10-15 seconds.  The browser (IE6) is almost freezed during the loading.
I suppose it's because of all javascript codes in the component.

Is there a way to make it load faster?
Like to load only components when they are clicked or something like that?

Thanks...

Sylvain

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Nov 2007, 11:20 AM
Hi Sylvain,

Slower initial rendering of the RadEditor is caused by its large main script, which contains complex features such as unlimited Undo/Redo, Shortcut support, Crossbrowser library, Command Manager
ContextMenu, many content filters to format content and bring it closer to current XHTML standard, etc.

You can reduce the loading time by setting:
  1. Enable your browser cache. If it is disabled, the pages with the editor control will load slower as all the cacheable items (scripts, images, etc) will be reloaded again.
  2. Set EnableDocking = false//this property turns on or off the global functionality for toolbar and module docking.
  3. Set EnableClientSerialize = false  // this property indicates whether RadEditor will save the state and positions of its toolbars and modules into a cookie.
  4. CacheLocalization = "true"
  5. Disable the RadEditor's ViewState by setting the EnableViewState property to false.
  6. Remove the CSS class tool from the ToolsFile.xml OR set only the CSS classes that you would like to appear in the CSS Dropdown rather than leaving the r.a.d.editor to read all of the CSS classes and populate the dropdown with all of them. Setting a small CSS list would skip processing all styles. You can do this from the RadControls/Editor/ToolsFile.xml file, from the codebehind or from your external Css file (please consult documentation if necessary)....
  7. Provide ToolsFile.xml with less tools for the editor for which you won't need all features.
  8. You could reduce the number of links in the Custom Links dropdown (if you have set such links).

You can also see the following KB article for more information: RadEditor loads slowly (high CPU utilization).

You can also test the following example in which the editor is with predefined set of tools: Custom Editors.

We are currently working on the new RadEditor "Prometheus" which is 3-4 times faster that the classic RadEditor. The new build is based on Microsoft's Asp.Net Ajax and has vast improvements in terms of loading speed. The "Prometheus" editor is currently in beta, but once it becomes official we will make a MOSS version with it. This will solve the slow loading problem.

The new editor loads much faster than the current RadEditor for ASP.NET control - http://blogs.telerik.com/blogs/todd_anglin/archive/2007/08/30/radeditor_prometheus_up_to_76_percent_faster.aspx


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
viex
Top achievements
Rank 1
answered on 06 Nov 2007, 02:16 PM
Hi Rumen,

Thanks a lot for this long post.
I will try your hints to make my web page load faster.

Sylvain


0
viex
Top achievements
Rank 1
answered on 09 Nov 2007, 03:00 PM
Hi,

So : using your hints, the loading is faster.
However : it is still quite slow compare to the original Sharepoint Editor.

I think the big difference is that the sharepoint editor loads its components when you click on it.
In the other hand, the rad editor loads the components when the page loads.
Isn't it?

Is there a way to make the rad editor behave like the sharepoint editor?

Thanks a lot,

Sylvain
0
Lini
Telerik team
answered on 09 Nov 2007, 04:09 PM
Hi Sylvain,

I have a couple of other suggestions that you can try to further improve the loading speed of the page containing the editors - set the following properties in the editor configuration:

<property name="ToolbarMode">ShowOnFocus</property>
<property name="EnableServerSideRendering">false</property>


These properties will make the editor toolbars render only after you click in the content area.

The current version of the MOSS RadEditor control does not support full load on demand. This means that it is not possible to replicate the behavior of the original MOSS rich text editor. We plan to introduce this feature when we update the MOSS control with the new version of the editor (RadEditor "Prometheus"). However, this update will happen only after an official release of the new editor.

Kind regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
viex
Top achievements
Rank 1
Answers by
Rumen
Telerik team
viex
Top achievements
Rank 1
Lini
Telerik team
Share this question
or