https://bugzilla.wikimedia.org/show_bug.cgi?id=58441

       Web browser: ---
            Bug ID: 58441
           Summary: Do not load JavaScript modules when they are not
                    needed
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Keywords: javascript, performance
          Severity: normal
          Priority: Unprioritized
         Component: MultimediaViewer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

If I enable the beta option and go to
https://pt.wikipedia.org/wiki/Nativo_digital?oldid=35896963&uselang=en
mw.loader.inspect() shows the big "jquery.ui.core" (and its friends) at the top
of the table:

0 "jquery.ui.core"       "51.8 kB"
1 "ext.multimediaViewer" "47.6 kB"
2 "momentjs"             "36.4 kB"
3 "jquery.ui.button"     "25.4 kB"
4 "jquery.ui.resizable"  "20.5 kB"
5 "jquery.ui.draggable"  "20.3 kB"

Most of this code is completely unnecessary unless the user click in the small
icon [[File:Socio.svg]] at the bottom of that page.

See the complete diff:
http://www.diffchecker.com/w5xkay9r

-- 
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

Reply via email to