Skin: Preload jquery.tablesorter based on rough heuristics
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 8 Mar 2017 04:31:10 +0000 (20:31 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 8 Mar 2017 04:42:26 +0000 (20:42 -0800)
commit2fccd229d2e8ba11c37b5d5c25a65751a714f3f6
treef930b0fbed9ba21d799af38e402c9a0b05eee11a
parentcbc23bd4dae818680950d3ddb59939e1eb3b0074
Skin: Preload jquery.tablesorter based on rough heuristics

Whenever a page contains table.sortable, mediawiki/page/ready.js
will lazy-load the module. However this can create a significant
delay and hides the entire prodecure from our module loader.

Instead, do a rough check (similarl to mw-ui-button) and preload
the module based on that.

Bug: T159911
Change-Id: I87600f968241c723e6bead3ef96c34f1021e1164
includes/skins/Skin.php
resources/src/mediawiki/page/ready.js