Board Thread:Watercooler/@comment-3032314-20181119015150

Hello!

As some of you may be aware, I've been working on Global Lua Modules/T over the past few days. One problem with the module as it's currently written is that it relies on a lot of inline CSS. Although there are only five calls to the, these add up quickly, especially when you use the module multiple times. In the interest of keeping T small and fast, I'd like to extract those styles into their own stylesheet:

Based on some simple tests, I believe this change will make instances of T about 30% smaller than they are now. It also opens up some interesting possibilities, like allowing users to customize T by restyling the existing classes.

There are, however, a couple of downsides to this proposal, which is why I'm bringing it up here instead of just making the change:


 * 1) Since T is now a global Lua module, we can't just dump the styles into MediaWiki:Wikia.css&mdash;they have to go in their own stylesheet.
 * 2) T is used throughout the wiki, so abrubtly yanking out the inline styles will cause breakage until/unless the new stylesheet is  ed.
 * 3) I'm not sure what the proper title is for this new stylesheet. Only two other modules depend on CSS (Global Lua Modules/InfoboxBuilder and Global Lua Modules/Mbox), and both use , but I'm nut sure if that's correct.

So, what do you guys think? Have I overlooked anything? 