Commons talk:Wikidata infobox help

Latest comment: 4 years ago by Mike Peel in topic Auto-collapse infobox?

Auto-collapse infobox? edit

In the hope it will speed up the loading of category pages, I would like to keep the infobox collapsed (perhaps even hidden) upon opening a category. Is there a way to do this, perhaps in the common.css file? The old command #wdinfobox { display: none;} does not seem to work any more. --Schlosser67 (talk) 11:26, 16 April 2020 (UTC)Reply

Followup: Just tried "$( "#wdinfobox" ).addClass( "mw-collapsed" );" in common.js - hides the infobox all right, but still loads it in full before doing so. Not quite what I hoped to achieve. --Schlosser67 (talk) 11:26, 16 April 2020 (UTC)Reply
@Schlosser67: Try "$( "#wdinfobox" ).addClass( "wdinfobox_hide" );" per Template:Wikidata Infobox. It probably won't speed up the page loading from the server though, though, it just hides the infobox after it's been compiled - but you may get a slight speedup in your browser if it doesn't try to render that bit of the code. Thanks. Mike Peel (talk) 15:54, 16 April 2020 (UTC)Reply
Return to the project page "Wikidata infobox help".