RadEditor Performance: Obsolete JSON Stuff on Page HTML

2 posts, 0 answers
  1. Armin
    Armin avatar
    1 posts
    Member since:
    May 2004

    Posted 15 Jul 2015 Link to this post

    I'm trying to configure a RadEditor with minimal set of toolbar tools. Thus, expecting a lighweight page HTML being downloaded to browser (as promised ;).

    I have created the FileTools.xml and set RenderMode="Lightweight". However, two issues remain when checking the page source after load:

    1. _dialogDefinitions

    $create(Telerik.Web.UI.RadDialogOpener, {"_dialogDefinitions":{"ImageManager":{"SerializedParameters":"LzFXSAgfHwImDDtQAS8KCjAMf2pqbFF1CWkJNh0fUiQAYCF9MxJ2ER0dJCUSd097JAtDQQgZIgwIeyt+ASAGNwsMIgtpYzZ1BnkJNRoLRho5Vj1EGg51DgZAMD0qY2EMJwp5UzYNPQEIeQ1TPyAVPR99PW1kbCJxCnkBMxtAeCQIVQdbDBx6DSwdNyIaSXFPHm5uSB8ZIgIJew4eFjMBeQBpfzJpVhwpDXkNdRsfcBk5fxNeDx1lDhsdJCIrFmJPMCVDbjEkAxcLDydCORokfwtpLjZ8fj4tPmkNLDU2fzwNVAgYM...

    ... etc.

    It appears ALL definitions are included, i.e. ImageManager, DocumentManager,LinkManager,ImageEditor, etc. in the page HTML -  despite the fact that there are no dialogs on the toolbar. In fact, my test toolbar contains only one button - "Bold".

    Would it be possible to keep such definitions in a separate xml file or something, i.e. not to load into browser with each request? How to get rid of these huge and heavy json definitions?

    2.   _localization strings

    Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadEditor, {"_localization":{"addcustomcolor":"Add Custom Color...","addcustomhexcolor":"Add Hex Color...","addcustomwordsuccess":"successfully added to dictionary","addtodictionary":"Add to dictionary","askwordcleaning":"The content you are trying to paste has MS Word formatting.\r\nWould you like to clean 

    I wonder why are these strings are included with every single page load? A common sense says that at least English strings should be built into the telerik dll.


    Many thanks for hints how to optimize RadEditor so thate there will be no obsolete JSON stuff on page HTML.



  2. Ianko
    Ianko avatar
    1510 posts

    Posted 17 Jul 2015 Link to this post

    Hi Armin,

    The same matter has been already discussed in a ticket thread opened to us (ID: 953285 ). In feature needs of assistance, please, make sure to open only one thread to eliminate the possibility of thread duplicates. Also, this will make the threads more concise and concrete. Thank you.

    As for the matter with JSON loading, Lightweight rendering does no assure that the MS Ajax initialization would be prevented. Shortly, this cannot be bypassed, as ASP.NET AJAX is structured that way. 

    Localization is designed to work this way and the only possible way to eliminate this load is to hard-code the values. Which is a much more bad decision and will lead to great harm regarding multi-lingual support. 

    I suggest using Lite dialogs (http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/lightweight-insert-dialogs) and disable all others. That will reduce the amount of Dialog definitions loaded to the page. 

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Telerik UI for ASP.NET Core is out
Back to Top