Go to file
Schnark 522331ddda Wikieditor: Rework deferred building of toolbar
Currently sections of the toolbar can be built deferred. This
is done for the help section and the special characters. The
disadvantage is, that you can't modify such sections before
they are really loaded.

This patch modifies the behavior by doing the following:

* Toolbars are always built directly. After all, deferring isn't
  used there anyway in the standard configuration.
* When a booklet is requested to be built only when it's needed,
  the index and all pages will be built immediately, only the
  content of the pages is deferred and built only when it is
  needed.

Even on slow machines building all pages immediately doesn't cause
noticeable pauses, in fact, opening a page with special characters
seems even faster because only the page you need is built, not all
pages.

Since all pages exist from beginning, you can remove and add pages
from user scripts. It is still not possible to modify an existing
page (add or remove a row to a help page, add or remove a character,
unless it is the page that was opened last time), but this is something
that shouldn't be needed very often, so it should be acceptable that
it still doesn't work.

Bug: T25479
Bug: T70791
Change-Id: I0e61b1fd4f6139a251e53a1fac28b3821bc6b860
2015-08-14 13:11:39 +00:00
i18n Localisation updates from https://translatewiki.net. 2015-08-13 20:58:57 +02:00
modules Wikieditor: Rework deferred building of toolbar 2015-08-14 13:11:39 +00:00
tests/qunit Remove unused code, pass phpcs 2015-03-25 15:27:10 -07:00
.gitignore build: Configure banana-checker and jsonlint 2015-06-22 16:29:10 -07:00
.gitreview Set defaultrebase=0 in .gitreview 2012-04-16 11:21:28 -07:00
.jshintrc Add QUnit test for ext.wikiEditor.toolbar 2014-11-29 14:12:26 -06:00
composer.json build: Updating development dependencies 2015-06-19 13:37:49 -07:00
COPYING Add COPYING 2014-01-22 22:11:36 +00:00
extension.json WikiEditor: Move HTML for dialogs to separate files 2015-08-14 13:07:27 +00:00
Gruntfile.js build: Configure banana-checker and jsonlint 2015-06-22 16:29:10 -07:00
package.json build: Configure banana-checker and jsonlint 2015-06-22 16:29:10 -07:00
README Remove ClickTracking calls 2013-03-27 13:41:05 -07:00
WikiEditor.hooks.php Replace hidesig module with a more robust implementation 2015-08-05 13:59:00 +10:00
WikiEditor.php Empty PHP entry point in favor of extension.json 2015-05-19 20:48:10 -07:00

# WikiEditor provides enhancements to the MediaWiki edit page

# This extension requires MediaWiki 1.17+ because it makes use of ResourceLoader.

# Example LocalSettings.php additions

require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );

# Before configuring this extension, see WikiEditor.php and become familiar with the initial state and structure of the
# $wgWikiEditorFeatures configuration variable. Essentially it's an array of arrays, keyed by feature name, each
# containing global and user keys with boolean values. "global" indicates that it should be turned on for everyone
# always, while user indicates that users should be allowed to turn it on or off in their user preferences.

# To enable a preference by default but still allow users to disable it in preferences, use something like...

$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

# Release 1.21 removes the $wgWikiEditorToolbarClickTracking config variable
# and with it support for tracking clicks on WikiEditor features via the
# ClickTracking extension.