https://bugzilla.wikimedia.org/show_bug.cgi?id=41288
--- Comment #2 from Brion Vibber <[email protected]> --- The hidpi code is in core: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=resources/jquery/jquery.hidpi.js;h=70bfc4ea3c664570102bd697140912fedfd98373;hb=HEAD $(foo).hidpi applies the 'srcset' stuff to any <img> elements found within the given selection, so assuming container is the container for the newly shown section this should work: $( window ).on('mw-mf-section-rendered', function( ev, container) { $( container ).hidpi(); } ); It should be idempotent if run over the same DOM subtree twice, so it should be safe to run it multiple times if need be. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
