javascript - Get accurate scroll position before 'domready' in Internet Explorer when scroll position is restored from back button navigation or reload? -


i created minimal test case (and logged bug microsoft references it): https://dennishall1.github.io/pageyoffset-test/

but maybe out there has encountered , solved this?

(i tried standard window.pageyoffset, tried few of 'older ways' -- document.documentelement.scrolltop, example, , didn't provide accurate scroll position sooner, maybe there's way.)

please try below code document.body.scrolltop


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -