[Mobile] Navigating back from forum to Django site, page keeps "loading"

I’ve found that sometimes, when I follow the forum link on my site and later use the browser’s back arrow to return to my main page, the browser has a page-loading animation that appears to indicate that the page has only partially loaded.

I can reproduce the behavior reliably. It only happens on mobile (Firefox and Chrome, iOS and iPadOS) and only if I navigate 3 pages deep into the forum. It doesn’t matter if I press back one page at a time or hold-press and skip back. I have not seen this happen on desktop (Firefox or Chrome).

I could probably figure out what’s going on with a desktop browser using the builtin developer tools, but I don’t have those on mobile. Have you had to debug mobile-only problems like this? With what tools?

I tried disabling Bootstrap temporarily, and I still saw the repeatable problem. I don’t know if it’s possibly some interaction with phpBB and Django? I’m not really sure what it could be.

Here is my website with the forum link: https://games.tabony.net/

and here is my website’s source code: GitHub - Logitude/TabonyGames: Website for the game(s) implemented by Charles J. Tabony (Logitude)

You can click on “Forum”, then “Nations”, then “Announcements” and then navigate back to the main site page on mobile to see the problem.

I tried editing my post, but I got an error saying, “An error occurred: You are not permitted to view the requested resource.” My guess is this means I don’t have permission to edit my post.

Here is what I tried to edit it to:

I’ve found that sometimes, when I go from a Django site (including djangoproject.com) to another site and later use the browser’s back arrow to return to the Django site, the browser has a page-loading animation that appears to indicate that the page has only partially loaded.

I can reproduce the behavior reliably. It only happens on mobile (at least on Firefox and Chrome, iOS and iPadOS), not on desktop (at least not Firefox or Chrome), and only if I navigate 3 pages or more deep into the non-Django site.

Going to the other site doesn’t have to be a link from the Django site. Just be on a Django site, navigate to another site in the same tab, click a few links, then navigate back using the browser’s back button.

I could probably figure out what’s going on with a desktop browser using the builtin developer tools, but I don’t have those on mobile. Have you had to debug mobile-only problems like this? With what tools?

At first, I thought this was something particular to my site, perhaps even more specifically something to do with the forum integration, but I found it doesn’t have to involve the forum or my site. I haven’t tried anything but my site or this one yet. I edited this post.

It’s not really breaking anything in terms of functionality, just my brain a little. Since my site includes a forum not built on Django, and I frequently visit the forum and then go back to the main page, I notice this frequently.