Hello Wiki Developers!
I have a question: I think it's slightly annoying that WikiEditor shows up only some moment after the editing page loads and that the textarea gets moved down (because WikiEditor is only built dynamically via JS).
Do you think it's possible to cache the generated WikiEditor HTML code in some way to speed up loading?
Thank god when it even loads completely. :) https://bugzilla.wikimedia.org/show_bug.cgi?id=44188
Nemo
vitalif@yourcmc.ru wrote 2013-02-14 21:38:
Hello Wiki Developers!
I have a question: I think it's slightly annoying that WikiEditor shows up only some moment after the editing page loads and that the textarea gets moved down (because WikiEditor is only built dynamically via JS).
Do you think it's possible to cache the generated WikiEditor HTML code in some way to speed up loading?
Anyone?
WikiEditor is initialized when the 'ready' event is fired in JavaScript:
/extensions/WikiEditor/modules/ext.wikiEditor.js: $( document ).ready( function() { // Initialize wikiEditor $( '#wpTextbox1' ).wikiEditor(); } );
First we need to find out when is the right moment to initialize WikiEditor, that being said when all needed modules are done. I'm not sure if using mw.loader.using instead of $( document ).ready() helps to fix the issue a lot. Well, I may be wrong :)
On Sat, Feb 16, 2013 at 11:59 PM, vitalif@yourcmc.ru wrote:
vitalif@yourcmc.ru wrote 2013-02-14 21:38:
Hello Wiki Developers!
I have a question: I think it's slightly annoying that WikiEditor shows up only some moment after the editing page loads and that the textarea gets moved down (because WikiEditor is only built dynamically via JS).
Do you think it's possible to cache the generated WikiEditor HTML code in some way to speed up loading?
Anyone?
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
Yeah, having it activate when the relevant element loads instead of the entire page would probably help a lot with that.
On 16/02/2013 14:20, Paul Selitskas wrote:
WikiEditor is initialized when the 'ready' event is fired in JavaScript:
/extensions/WikiEditor/modules/ext.wikiEditor.js: $( document ).ready( function() { // Initialize wikiEditor $( '#wpTextbox1' ).wikiEditor(); } );
First we need to find out when is the right moment to initialize WikiEditor, that being said when all needed modules are done. I'm not sure if using mw.loader.using instead of $( document ).ready() helps to fix the issue a lot. Well, I may be wrong :)
On Sat, Feb 16, 2013 at 11:59 PM, vitalif@yourcmc.ru wrote:
vitalif@yourcmc.ru wrote 2013-02-14 21:38:
Hello Wiki Developers!
I have a question: I think it's slightly annoying that WikiEditor shows up only some moment after the editing page loads and that the textarea gets moved down (because WikiEditor is only built dynamically via JS).
Do you think it's possible to cache the generated WikiEditor HTML code in some way to speed up loading?
Anyone?
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
It's also annoying that while the toolbar (normal or advanced) loads I can't type in the header (for section=new) or the edit area, at least on Firefox:* is this the same problem?
Nemo
(*) Might also be a recent regression: https://bugzilla.mozilla.org/show_bug.cgi?id=795232
It's also annoying that while the toolbar (normal or advanced) loads I can't type in the header (for section=new) or the edit area, at least on Firefox:* is this the same problem? (*) Might also be a recent regression: https://bugzilla.mozilla.org/show_bug.cgi?id=795232
Maybe... It's also anyway annoying that the toolbar jumps down some moments after loading the page...
If WikiEditor wasn't implemented in _pure_ JS, the panel would be generated by php so this problem wouldn't exist...
On Mon, 18 Feb 2013 13:22:54 -0800, vitalif@yourcmc.ru wrote:
It's also annoying that while the toolbar (normal or advanced) loads I can't type in the header (for section=new) or the edit area, at least on Firefox:* is this the same problem? (*) Might also be a recent regression: https://bugzilla.mozilla.org/show_bug.cgi?id=795232
Maybe... It's also anyway annoying that the toolbar jumps down some moments after loading the page...
If WikiEditor wasn't implemented in _pure_ JS, the panel would be generated by php so this problem wouldn't exist...
If we merged some small portions of WikiEditor into core as a fundamental base for various editors to be built on top of we could universally include the basic UI frame in the HTML. Then have the WikiEditor's JS add the toolbar functionality to that (presumably empty) toolbar area.
wikitech-l@lists.wikimedia.org