I'm adding some inline JS to the page head section, which uses the addOnloadHook function from wikibits. After the inclusion of wikibits moved to the resource loader, this broke - addOnloadHook is not available at the point where I'm using it. This is breaking all maps in the Maps and Semantic Maps extensions.
An example of the JS that is breaking: http://dpaste.org/uB7Q/
How should I modify my code, or is this a bug in the resource loader?
Version: 1.17.x
Severity: enhancement