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

Load HTMLEditor.js conditionally

3 Answers 84 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 29 Jan 2009, 03:01 PM
In order to optimize sharepoint public facing web sites, could htmleditor.js be loaded conditionally?  It was noticed the file size of HtmlEditor.js is about 283 KB which seems like a lot to load especially those with slower connections.  Would loading this conditionally be possible?  If so, how do we know about setting this up?

Thanks,
Chris

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 02 Feb 2009, 12:20 PM
Hello Christopher,

The RadEditor does not have configuration property that affects the loading of HTMLEditor.js. What you should know is that RadEditor uses some of the default MOSS Editor dialogues and if you do not load this file these dialogues will throw javascript errors. What you can do is disable the usage of the respective MOSS dialogues by modifying the ToolsFile.xml located in /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.3.1.0__1f131a624888eeed/Resources/CssEditor.css folder (5.3.1.0__1f131a624888eeed depends on the version of the control) and remove rows such as:
<tool name="MOSSLinkManager" shortcut="CTRL+K" /> 
<tool name="MOSSTemplateManager" /> 
<tool name="MOSSInsertTable" /> 
<tool name="MOSSRightToLeft" /> 
<tool name="MOSSLeftToRight" /> 
 

Afterwards backup(move) the content from HTMLEditor.js to some other file.

I hope this helps.

All the best,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Christopher
Top achievements
Rank 1
answered on 05 Feb 2009, 05:03 PM
Thank you for the response Stanimir. The usage of MOSS editor dialogues (in which RadEditor uses), does it trigger core.js, init.js, and other js files to load?  If it does, by disabling  MOSS Editor dialogue, will this improve the public facing site load time?

Thanks,
Chris
0
Stanimir
Telerik team
answered on 09 Feb 2009, 03:37 PM
Hi Christopher,

RadEditor does not use core.js or init.js. So it should not be affected if you do some optimizations of your MOSS site.


I found this article on How to Optimize a SharePoint Server 2007 Web Content Management Site for Performance there you can find information on how to load the core.js file in the background for an anonymous user.

I hope this helps.

All the best,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Christopher
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or