HomePhabricator

Skin: Preload jquery.tablesorter based on rough heuristics

Authored by Krinkle on Mar 8 2017, 4:31 AM.

Description

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