https://bugzilla.wikimedia.org/show_bug.cgi?id=27769
Summary: Loading CSS with ResourceLoader AddModule method is
very slow.
Product: Wiktionary tools
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: General
AssignedTo: [email protected]
ReportedBy: [email protected]
When I use the code below, CSS is taking too long to load:
injectStyleAndJS static function (& $ out, & $ sk) {
global $ wgOut;
$ wgOut-> AddModule ('ext.BookManager');
return true;
}
and this is only solved when I use addModuleStyles to call the same function:
static function injectStyleAndJS( &$out, &$sk ) {
global $wgOut ;
$wgOut->addModuleStyles( 'ext.BookManager');
$wgOut->addModules( 'ext.BookManager');
return true;
}
and that to me seems a redundant.
The extension code where the error occurs here:
https://code.google.com/p/mediawiki-book-manager/
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l