#2823: V3: Dialog API lazy load
-----------------------+----------------------------------------------------
Reporter: fredck | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone: CKEditor 3.0
Component: General | Version:
Keywords: Confirmed |
-----------------------+----------------------------------------------------
As of today, the "dialog" and "dialogui" plugins represent 35KB (23KB +
12KB) of our compressed code. Some cleanup may help, reducing it to about
30KB, which is still a big portion of the total code size (currently
120KB, dialog included). We must also consider that, during the time, the
code tends to get bigger, with new features and fixes.
Considering the above problem, and also that the dialog plugin is not
needed to the editor to get created into a page, we could think about a
lazy loading system for it. In this way, just the very basic dialog code
would endup into ckeditor.js, having the rest of its logic available into
another file.
A configuration option could be used to set it up:
{{{
// Load the dialog code 5 sec after the main plugin loading.
config.dialog_lazyLoad = 5;
// Load the dialog code immediately.
config.dialog_lazyLoad = 0;
// Load the dialog code only when opening a dialog.
config.dialog_lazyLoad = -1;
}}}
An event could be fired by the dialog code once loaded, so other parts of
the code (like plugins) could customize it.
We must still make it possible to optionally include the dialog code into
the compressed ckeditor.js file.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2823>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac