Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 3Mar 3 My forum is acting in a way that doesn't seem to be the invision community standard behaviour. As in the video below, when you navigate from the today's posts to a topic, and then back again, it puts you back to the top of the page rather than where you left off.We just updated yesterday to 4.7.20 and this was one of the bugs I was hoping this would fix. What is the answer please? ScreenRecording_03-02-2025 20-30-35_1.MP4
March 3Mar 3 Community Expert Thats actually something controlled by the browser, rather than he site. When you select back on the browser, your browser is what states what to go back to. For example, if I try that same action in chrome, it does exactly what you suggest, and leads back to where you were on the page.
March 3Mar 3 Author How can this be the case when I use the same browser to look at this site and also my site yet this site acts as you would expect it to?
March 3Mar 3 Community Expert The design on 5 is very different, and I suspect the Browser is treating it differently for some reason, but as I mention, I'm not seeing it on your own site here. What browser, device and version is it you are using? 2025-03-03_11-34-59.mp4
March 3Mar 3 Author Iphone, tried chrome and safari and both act the same way. Both latest versions I looked at dawpi’s site using the same browsers and it acts as expected
March 3Mar 3 Community Expert Are you running any plugins/apps that would only be running when logged in? If so, try disabling those.
March 3Mar 3 Community Expert Im not sure what I can really suggest here. As you can see on my video there, its working on your site on chrome on this end. It just seems its not working for you for some reason
March 3Mar 3 Author Its not just me, it was my members that reported it.Its quite strange that it works for Dawpi and yourself...although I can confirm that it only seems to be affecting navigation from a mobile device, desktop is fine. Did you try mobile your end?Also I switched to a different theme and then it works, which would suggest its theme related however Dawpi is sceptical.I will drop @Ehren a message and see if he has any suggestions.
March 3Mar 3 Community Expert As you have advertisements, this may be confusing the browser so simplifying your community down to bare bones may help you find what is causing the issue.It's worth noting I can't reproduce this on my mobile device on a test site.
March 3Mar 3 Author As you have advertisements, this may be confusing the browser so simplifying your community down to bare bones may help you find what is causing the issue.It's worth noting I can't reproduce this on my mobile device on a test site.I tried disabling the adverts already
March 3Mar 3 Community Expert I tried disabling the adverts alreadyYou will want to disable everything custom to your site and revert back to the core software.
March 4Mar 4 Hi Steve,Scroll restoration:That process is usually called scroll restoration. It's a feature built into browsers which restores the scroll position of pages when you navigate back to them. Depending on the browser (and clearly iOS is a bit more strict), there are a few things which can prevent this from happening.Slow loading javascript (which in turn delays the rendering of your page) can be one of those. The other culprit is JS which modifies the content of the page (if the browser is seeing different content on the page, it assumes the page is showing different content than before and doesn't know where it should scroll to).Theme:I've just tested an unmodified version of the Dimension theme (on my own site), and navigating works correctly on my phone. I tested your site and can see the issue happening. Have you added your own code to the theme after installing it?Loading time/ads:Your site seems to have a very long loading time for me (12 seconds compared to 3 seconds for my own site). You can test this yourself by visiting your site as a guest and waiting for the "Guest cookie banner" to appear. It should be nearly instant. Since your site is taking so long to render, this might be the issue.In terms of the slow loading, the culprits are your ads. You mentioned you disabled your ads, but was this every ad, or just some? There might be one in particular which is causing the excessive loading. This chart shows how your site loads. It wants to finish loading around the 2 second mark, but the ads delay this by an extra 10 seconds which likely exceeds the timeframe that iOS requires for scroll restoration.
March 4Mar 4 Author Hi Ehren, thanks so much for the detailed response.I think I have rule out the ads, I disabled them and the issue is there. I also switched to a theme where the ads are still running (they are handled by blocks), and the issue isn't there.i have been using your theme for probably 7 years now, and yes there have been a lot of things added during that time, mostly custom CSS though which I would imagine is less likely to cause this than other types of code?I'm going to have to have a long hard think about what else has been added in that time.In terms of slow loading, I'm not sure what I can do with regards the ads, they are a necessary evil unfortunately. My adserver does give the option for javascript or asynchronous loading. I understand the latter is a better standard to use, however they are noticeably slower to render than the javascript code.
March 5Mar 5 Author Update, created a separate theme with the latest dimensions version and it works as expected. Between dawpi and myself we have a lot of picking through the current default theme to find the culprit code.thanks for your time