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

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:

Configure bugmail:
------- 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

Reply via email to