Slow loading

5 posts, 0 answers
  1. viex
    viex avatar
    22 posts
    Member since:
    May 2007

    Posted 06 Nov 2007 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 06 Nov 2007 Link to this post

    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
  3. viex
    viex avatar
    22 posts
    Member since:
    May 2007

    Posted 06 Nov 2007 Link to this post

    Hi Rumen,

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

    Sylvain


  4. viex
    viex avatar
    22 posts
    Member since:
    May 2007

    Posted 09 Nov 2007 Link to this post

    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
  5. Lini
    Admin
    Lini avatar
    2148 posts

    Posted 09 Nov 2007 Link to this post

    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
Back to Top