Seems way more reliable than keeping scroll position (as was done previously; inspired by the vue static site generator vuepress)