Static GitHub Issues

[1085] browser window scroll position in SSR

prev: How to set head from asyncData?
next: Vue packages version mismatch

Since window is never defined unless in Browser build. how do i get the scroll position of the window (usually window.scrollY or window.scrollX) when server rendered.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c948">#c948</a>)</em></sub></div>