If you're generating HTML5 output with custom toolbar JavaScript AND the default master page, you may have noticed that the JavaScript runs twice on page load. This caused me problems in IE9, where the first run of the JavaScript tried to manipulate DOM objects that hadn't yet been drawn - resulting in an error message.
The reason for this is that the default master page includes a topic toolbar proxy. You therefore end up with Toolbar.js being imported twice - once via the topic toolbar proxy, and once - for some reason - in the top-level <head> element:
So to stop the JavaScript running twice, delete the topic toolbar proxy from the master page:
I can't offer assurances that this does not lead to disaster, but so far it seems to work for me.
HTML5: JavaScript runs twice if default master page used
HTML5: JavaScript runs twice if default master page used
You do not have the required permissions to view the files attached to this post.