The SkinMinerva.php doesn't have addHeadItem function or its equivalent. Let's just say that sometimes Javascript has to be generated.
Description
Description
Event Timeline
Comment Actions
You can use OutputPage::addHeadItem to add items to the HTML of SkinMinerva.
https://www.mediawiki.org/wiki/Manual:Hooks/BeforePageDisplay
like so:
if ( $skin instanceOf SkinMinerva ) { // add items }
Please feel free to follow up with any further questions you have and apologies in advance if I have misunderstood the request here.