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

[Solved] Large templates causing slow response and browser warning

1 Answer 138 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 29 Jan 2010, 12:50 PM
When loading large html file in RadEditor,there are browser issues. It runs very slow, CPU utilisation goes up very high and warning issued. Image attached.

Any Ideas Please?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Feb 2010, 02:09 PM
Hi Khamani,

There are five main reasons responsible for the slow editor performance when editing large XHTML/HTML files (>100KB).

Reason 1: The undo/redo mechanism and other maintenance code that ensures the smooth user experience - it gets increasingly cumbersome and time consuming for the browser to execute it if huge content is in the editor
Reason 2: The fact that most of the editor functionality is implemented in JavaScript, thus resulting in 10 times slower performance compared to native compiled code.
Reason 3: test the performance only when <compilation debug="false" in your web.config. When it is true, the MS AJAX debugging code kicks in and causes a severe performance hit on the client-side.
Reason 4: Remove the RadEditor modules, e.g.

<telerik:radeditor runat="server" ID="RadEditor1">
    <Modules>
        <telerik:EditorModule Visible="false" />
    </Modules>

</telerik:radeditor>

Reason 5 (valid when switching between the view modes or submitting the content): In difference with the TextBox control which does not process the content when submitting it to the server, the RadEditor runs content filters which validate the non well formatted content and make it XHTML compliant. Right now the editor runs more than 11 content filters. These filters run regular expressions which parse and validate the large content, which slow down the content submission to the server. You can disable the filters by setting ContentFilters property to None, e.g.

<telerik:RadEditor ID="RadEditor1" ContentFilters="None" runat="server"></telerik:RadEditor> 

The policy behind all radcontrols is that they should be cross-browser and should offer similar experience over different browsers and OS-es. At present the editor supports IE under Windows, Mozilla Firefox under all platforms, Opera under all platforms and Safari under Mac. Such cross-browser functionality is possible only with JavaScript - no other option exists.
Being cross-browser is a top priority, and thus at present it rules out changing the editor's technology.

We are constantly working on improving the speed, but the browsers do have their limits, and it is not hard to reach them when editing large content in the editor.

You can find more information in the following KB article: RadEditor loads slowly (high CPU utilization).

We strongly suggest avoiding loading or saving 100K of content into the editor in a real-world scenario (that is, other than for test purposes) - as an actual user will not get a good experience if they have to deal with editing 100K of HTML on a single go.

All the best,
Rumen
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Editor
Asked by
Manoj
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or