Last modified: 2014-02-20 10:50:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60441, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58441 - Do not load JavaScript modules when they are not needed
Do not load JavaScript modules when they are not needed
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript, performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-13 09:37 UTC by Helder
Modified: 2014-02-20 10:50 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2013-12-13 09:37:41 UTC
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
Comment 1 Mark Holmquist 2013-12-27 22:18:00 UTC
This is definitely something we've wanted to do, but it's not the first priority for us right now, especially given it's still in beta.

I expect we'll do this before it comes out of beta, though.
Comment 2 Gilles Dubuc 2014-02-20 10:50:06 UTC
https://gerrit.wikimedia.org/r/#/c/113786/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links