diff --git a/ui/features/discussion_topic/index.js b/ui/features/discussion_topic/index.js index 0a1f4d4d850..23d53eaeaa7 100644 --- a/ui/features/discussion_topic/index.js +++ b/ui/features/discussion_topic/index.js @@ -216,7 +216,15 @@ ready(() => { $container.one('scroll', () => router.navigate('')) }, 10) }) - router.route('entry-:id', 'id', entriesView.goToEntry.bind(entriesView)) + router.route('entry-:id', 'id', () => { + // Interval to deffer scrollng until page is fully loaded + const goToEntryIntervalId = setInterval( () => { + if(document.readyState === 'complete') { + entriesView.goToEntry.bind(entriesView) + clearInterval(goToEntryIntervalId) + } + }, 500) + }) router.route('page-:page', 'page', page => { entriesView.render(page) // TODO: can get a little bouncy when the page isn't as tall as the previous