mediawiki-extensions-Popups/resources/ext.popups/index.js
jdlrobson deaaf0961b Remove popups from critical rendering path
Instead load it via mw.loader.using

We retain the module name ext.popups as this will be present
in cached HTML, however now it will load the bulk of the code
inside ext.popups.main

Bug: T176211
Change-Id: Ibe212721807d3698dc45ef46b2dbde15ca9d2f70
2018-03-13 08:44:31 -07:00

5 lines
143 B
JavaScript

// Load Popups outside the critical rendering path (T176211)
mw.requestIdleCallback( function () {
mw.loader.using( 'ext.popups.main' );
} );