This task proposes the removal of wgCategories from mw.config.
MediaWiki [[ https://gerrit.wikimedia.org/g/mediawiki/core/+/f340c7271c020090e19e7dd5be1c68a2c02dcc33/includes/OutputPage.php#3205 | adds wgCategories ]] with a complete array of categories to the JavaScript config delivered with each page. For the Obama article, that's about 3400 characters in itself as an inlined head script. This seems like it would be more appropriate to be rendered as static HTML towards the bottom of the page or loaded asynchronously as needed. The mobile site already strips this data and there don't seem to be many consumers except BlueSpiceInsertCategory and possibly Minerva but that's probably a bug in itself.