Bug 952087 Anchor scroll fails if the anchor is created between DOMContentLoaded and onload r=smaug