Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-11-21 14:45:25

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

speeding up xinha load time

Hello,

    I've integrated Xinha into OpenWebMail (http://openwebmail.acatysmoof.com), replacing an old version of htmlArea. Beta sites are reporting that the load time in considerably more than htmlArea, and their users are complaining that they are waiting too long for the textarea to appear before they can start typing emails. Is there anything that can be done to speed up the load time?

   The source has been minified via yui compressor, and we're only loading the characterMap plugin. No other plugins are loading. Here is the init:

<script type="text/javascript">
   var _editor_url  = '/javascript/xinha/';
   var _editor_lang = 'en';
   var _editor_skin = "openwebmail";
</script>

<script type="text/javascript" src="/javascript/xinha/XinhaCore.js"></script>

<script type="text/javascript">
   xinha_editors = null;
   xinha_init    = null;
   xinha_config  = null;
   xinha_plugins = null;

   xinha_init = xinha_init ? xinha_init : function() {
     xinha_editors = xinha_editors ? xinha_editors : [ 'body' ];
     xinha_plugins = xinha_plugins ? xinha_plugins : [ 'CharacterMap' ];

     if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return; // do not modify

     xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
     xinha_config.showLoading = true;
     xinha_config.autofocus = document.composeform.to.value == '' ? false : true;
     xinha_config.statusBar = false;
     xinha_config.flowToolbars = false;
     xinha_config.sizeIncludesBars = false;
     xinha_config.sizeIncludesPanels = false;
     xinha_config.mozParaHandler = 'built-in';

     xinha_config.toolbar =
       [
         ["popupeditor"],
         ["separator","undo","redo"], (Xinha.is_gecko ? [] : ["separator","cut","copy","paste","overwrite","saveas"]),
         ["separator","bold","italic","underline","strikethrough"],
         ["separator","justifyleft","justifycenter","justifyright","justifyfull"],
         ["separator","forecolor","hilitecolor"],
         ["separator","formatblock","fontname","fontsize"],
         ["linebreak","subscript","superscript","lefttoright","righttoleft"],
         ["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
         ["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
         ["separator","killword","clearfonts","removeformat"],
         ["separator","htmlmode","showhelp","about"]
       ];

     xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);

     Xinha.startEditors(xinha_editors);
   }

   xinha_init();

</script>

Thanks for any recommendations!

Offline

#2 2009-11-21 20:27:40

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: speeding up xinha load time

Sounds to me like your server is not permitting the javascript to be cached.

Try using Firebug network panel to see what's getting loaded and how long it's taking.


James Sleeman

Offline

Board footer

Powered by FluxBB