Thanks a lot AJ Mallory!
Tried your version too, as false is the default, but no luck here.
The problem was with a MapifyPro plugin. It also uses the same script and somehow forces it to be placed in footer.
I’ve written to their support and hopefully they’ll be able to help me out.