Yep, that's what I did too a year a two ago. Since some parts of front-end code work quite differently in Common.js and gadgets, it's bettet to put modular stuff (esp. ones that users would like to opt-out of) in gadgets.
On Tue, Dec 10, 2013 at 12:38 AM, Liangent <[email protected]> wrote: > MediaWiki:Common.js can also create disagreement and defaults change > without notice. > > Actually what I did sometimes is to move code from MediaWiki:Common.js to > default gadgets, so it can be disabled per user (for example, some users > are using a too slow computer or network), and at the same time, this makes > maintenance easier for developers, because gadgets can be made modularized, > instead of using a big JavaScript and CSS file (Common.js/css). > > -Liangent > > > On Tue, Dec 10, 2013 at 5:02 AM, K. Peachey <[email protected]> wrote: > > > For wider discussion > > > > --- > > From: <bugzilla-daemon <at> wikimedia.org> > > Subject: [Bug 58236] New: No longer allow gadgets to be turned on by > > default for all users on Wikimedia > > sites< > > > http://news.gmane.org/find-root.php?message_id=%3cbug%2d58236%2d3%40https.bugzilla.wikimedia.org%2f%3e > > > > > Newsgroups: gmane.org.wikimedia.mediawiki.bugs< > > http://news.gmane.org/gmane.org.wikimedia.mediawiki.bugs> > > Date: 2013-12-09 20:41:41 GMT (19 minutes ago) > > > > https://bugzilla.wikimedia.org/show_bug.cgi?id=58236 > > > > Web browser: --- > > Bug ID: 58236 > > Summary: No longer allow gadgets to be turned on by default > for > > all users on Wikimedia sites > > Product: Wikimedia > > Version: wmf-deployment > > Hardware: All > > OS: All > > Status: NEW > > Severity: normal > > Priority: Unprioritized > > Component: Site requests > > Assignee: wikibugs-l <at> lists.wikimedia.org > > Reporter: jared.zimmerman <at> wikimedia.org > > CC: benapetr <at> gmail.com, > > bugzilla+org.wikimedia <at> tuxmachine.com, > > dereckson <at> espace-win.org, greg <at> > wikimedia.org > > , > > tomasz <at> twkozlowski.net, wikimedia.bugs <at> > > snowolf.eu > > Classification: Unclassified > > Mobile Platform: --- > > > > Gadgets being turned on for all site users (including readers) can cause > a > > confusing users experience, especially when there is some disagreement > and > > defaults change without notice (readers are rarely if ever part of these > > discussions) > > > > Move to model where gadgets are per user rather than part of a default > > experience for users > > > > -- > > 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 > > Wikibugs-l <at> > > lists.wikimedia.orghttps:// > lists.wikimedia.org/mailman/listinfo/wikibugs-l > > _______________________________________________ > > Wikitech-l mailing list > > [email protected] > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- З павагай, Павел Селіцкас/Pavel Selitskas Wizardist @ Wikimedia projects _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
