Last modified: 2012-01-30 18:16:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35990, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33990 - WikiEditor textbox loses focus while toolbar renders, making it feel slow
WikiEditor textbox loses focus while toolbar renders, making it feel slow
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-27 15:56 UTC by Dan Barrett
Modified: 2012-01-30 18:16 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Barrett 2012-01-27 15:56:05 UTC
WikiEditor feels slow when starting up because you can't edit while the toolbar is rendering, which sometimes takes a few seconds. If you try to edit too soon (before the toolbar is fully rendered), the textbox loses focus and suddenly, your typing is not being captured.

1. Visit an article and click the Edit link to enter WikiEditor.
2. Immediately, before WikiEditor has finished rendering its toolbar, click the edit box and start typing.
3. As the toolbar continues to render, the textbox loses focus so your typing does not have any effect.

Can WikiEditor somehow keep the focus on wpTextbox1 while the toolbar is rendering?

Other notes:

This feeling of slowness is worse if your site has customized the toolbar, particularly adding or removing buttons in the 'main' section, for example:

 $('#wpTextbox1').wikiEditor('removeFromToolbar', {
        'section': 'advanced',
        'group': 'format',
        'tool': 'newline'
        });

because these happen after the rest of the toolbar is rendered, lengthening the render time.
Comment 1 Dan Barrett 2012-01-27 15:56:30 UTC
This is in 1.18.1.
Comment 2 Mark A. Hershberger 2012-01-30 18:04:04 UTC
Could you check this on beta.wmflabs.org and let me know if you see an improvement?
Comment 3 Dan Barrett 2012-01-30 18:16:57 UTC
Yes, the speed on beta.wmflabs.org is a VAST improvement.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links