fix bug 940918 - Avoid flash of content in TOC, quick links

https://bugzilla.mozilla.org/show_bug.cgi?id=940918