Wikidata For Wikimedia Projects/Projects/Badges
Optimise Badges extension loading for pages where no badges are displayed
[edit]Badges are small visual clues attached to sitelinks to quickly indicate if the content, article or page behind it has a special status. For example, a Gold Star will indicate a Good Article status, whilst a Silver Star indicates a Featured Article.
Currently, the Extension:WikimediaBadges is loaded on every page read, but there are many pages and instances when there are no badges to display.
Development
[edit]A conditional gate has been added to check the page CSS for the presence of badges before the Extension:WikimediaBadges is rendered. This should remove upto 1.2kb of render-blocking CSS for every page read where the extension is not necessary.
Deployment
[edit]The patch was merged to MediaWiki version MW-1.44.0-wmf.18
and will be deployed to all Wiki groups on February 27, 2025.