I do not know much about JS, but I assume most of it is loaded by
https://commons.wikimedia.org/wiki/MediaWiki:Common.js . Is there some other mechanism?
How are default gadgets loaded? There is a lot of comments in Common.js, explaining
purpose and authors/maintainers of each snippet of code, but even with that I often find
it very hard to figure out which part of the interface is MediaWiki software and which is
our local JS environment. I usually find out when I edit on other wikis and the tools or
links I rely on are not there ("subpages" link comes to mind or link to template
Transclusion count tool). I think it would be great if there was more documentation of the
code and time frame for which it was intended. Many snippets seem to be patches for bugs
with bug numbers in the documentation. We can probably check on status of those bugs.
Jarek T.
User:jarekt
-----Original Message-----
From: commons-l-bounces(a)lists.wikimedia.org [mailto:commons-l-bounces@lists.wikimedia.org]
On Behalf Of Erik Moeller
Sent: Wednesday, September 25, 2013 1:19 AM
To: Wikimedia Commons Discussion List
Cc: Ori Livneh
Subject: [Commons-l] JavaScript payload on Commons is twice EnglishWikipedia's
Ori Livneh has created a nice dashboard that regularly polls the Main Pages of a few of
our projects to break down the amount of JavaScript (and other static assets) that's
loaded for an anonymous pageview of the Main Page:
https://ganglia.wikimedia.org/latest/?r=week&cs=&ce=&tab=v&…
Commons currently loads more than 1MB of JavaScript. This is too much, which negatively
affects performance for our end users. Some of this is on WMF -- JS code we've
deployed that we can optimize. But it would also be good to get community help with
auditing site JS and gadgets that are loaded by default and that can be reduced in
complexity, loaded only when needed, etc.
We'll aim to provide better debugging tools to the community in future but wanted to
point this out in case anyone already wants to take a closer look.
Erik
--
Erik Möller
VP of Engineering and Product Development, Wikimedia Foundation
_______________________________________________
Commons-l mailing list
Commons-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/commons-l