On one site everything works fine when the javascript script loads just before the closing head tag.
It does not work on another site with a theme that forces a link tag (to load the favicon) appears just before the closing tag.
Could a link tag prevent the javascript from loading properly or should I be looking elsewhere for the reason the script is not working?