Article relates to
RadEditor v4.x, v5.x, v6.x and v7.x,
RadEditor for ASP.NET AJAX
April 10, 2009
Last modified by
BACKGROUND There are several different reasons for the slow loading time of RadEditor:
Slow loading on development machine
The slow loading of the editor occurs when you are in debug mode in Visual Studio and when you try to start the project from within VS. When RadEditor loads the css styles to the styles dropdown, Visual Studio checks their consistency and thus the slow loading time.
Slow loading on client with high CPU utilization RadEditor is a very powerful tool with many functions which need to load on the client in order for the editor to operate properly and show its true power. This is the reason for the slow loading time. If you compare it to a regular textarea, you will notice that the textarea loads in no time but offers very limited functionality. The editor, on the other hand, has a large feature set:
Yet another reason for the slow loading time is many instances of RadEditor and RadSpell on a single page. In this case, the page will load considerably slower and occasionally you may get this error: "You don't have permission to access this page or your cookie has expired! Please, refresh the page!"
This error is not connected to the slow loading speed. Rather, it is with the sheer number of editors and spells that you set on your page. The HTTP protocol allows only 20 cookies per host. When this number is exceeded the oldest cookie gets dumped.
The editor and the spell each use a cookie to store some information (although the spell cookie does not get written on page load but on initialization).
SOLUTION Below are described the ways to increase the editor's loading time:
Client machine - RadEditor v4.x
Client machine - RadEditor v5.x - v7.x
Do not let the editor reads its css classes from the page (as is the default) - use the CssFiles array to specify links only to the css files with the needed classes. Even if all the classes from the page should be visible in the editor - it is still much better to link to the css files with the CssFiles array! You can review the CssFiles example for more info: External Css Files.
Client machine - RadEditor for ASP.NET AJAX
RadEditor for ASP.NET AJAX is based on the MS AJAX framework, which provides a number of very useful features and has great built-in functionality that allows the RadControls for ASP.NET AJAX suite to have reduced codebase and a large feature set accross all RadControls for ASP.NET AJAX.
By using MS AJAX we were also able to reduce the loading time of RadEditor for ASP.NET AJAX on the client by 80%.
At present you can take several steps to optimize the loading time
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.