Thread:User talk:CodeCat/User:CodeCat/lookup language/reply (2)

You want to use jQuery — fine. Just use it sensibly. Building DOM is actually more direct — HTML has to be parsed, and parsing is costly. DOM nodes can be put into variables to be later used directly (instead of going through a jQuery wrapper object, often completely unnecessary), like I showed; putting everything into one long string and later plucking out interesting fragments complicates things. Also, carelessly manipulating the markup instead of DOM can lead to problems, like it did at MediaWiki:Gadget-FastRevert.js.

Time to start building a library, it seems. Rather easy to start: just create a gadget in MediaWiki:Gadgets-definition, and set the  option to hide it from Special:Preferences. Then use it just like you did with LegacyScripts.

About the fifth point, I was referring to the comma, not the apostrophes. (Quoting keys is actually necessary for compatibility.)