# Loading gets stuck after navigating back from external link

**URL:** https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432
**Category:** Bug
**Created:** [25.Январь.2016 08:58:02 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432 "2016-01-25T08:58:02Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [25.Январь.2016 08:58:02 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/1 "2016-01-25T08:58:02Z")

</div>

There seems to be a problem when navigating back into Discourse from an external link.

Steps to reproduce:

1. Click an external link ([here’s one](http://www.discourse.org/)).
2. Navigate back in your browser.

On Chrome on my desktop (`Version 48.0.2564.82 m (64-bit)`), this works fine. Discourse takes a second to load, and I end up on the topic page. In Safari on iOS (`9.2.1`), however, thinks work differently: Discourse loads surprisingly quickly, and shows the loading spinner. Sometimes, this completes quickly and you see the topic; but most of the time, you get stuck on the spinner until you reload the page. If it works, reloading and trying again seems to reproduce it most of the time. Seems like Safari is a special snowflake here ☹

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [25.Январь.2016 10:30:54 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/2 "2016-01-25T10:30:54Z")

</div>

> [@fefrei](#):
>
> In Safari on iOS (9.2.1), however, thinks work differently: Discourse loads surprisingly quickly, and shows the loading spinner. Sometimes, this completes quickly and you see the topic; but most of the time, you get stuck on the spinner until you reload the page.

Yes I repro this all the time on BBS. I don’t know that I have _ever_ seen it outside Mobile Safari though.

@eviltrout can you have a look? Trivially reproducible on iPad when visiting external links and then going back.

---

<div class="post-metadata">

### Author: ![calmh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/calmh/32/115466_2.png) [@calmh](https://meta.discourse.org/u/calmh)
#### Post date: [25.Январь.2016 11:59:57 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/3 "2016-01-25T11:59:57Z")

</div>

Desktop Safari also does the same.

---

<div class="post-metadata">

### Author: ![scottfsmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scottfsmith/32/50976_2.png) [@scottfsmith](https://meta.discourse.org/u/scottfsmith)
#### Post date: [12.Февраль.2016 01:45:37 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/4 "2016-02-12T01:45:37Z")

</div>

+1 on Desktop Safari - also seems to be happening more frequently on my site. As in it used to happen now and then and its happening most of the time now.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [12.Февраль.2016 21:43:41 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/5 "2016-02-12T21:43:41Z")

</div>

Does this happen on meta now with the new rendering scheme for topics?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [12.Февраль.2016 22:15:02 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/6 "2016-02-12T22:15:02Z")

</div>

It’s real easy to test

- be on iPad
- go to [https://bbs.boingboing.net](https://bbs.boingboing.net)
- visit any topic
- tap on the link in the first post
- tap back button in Mobile Safari

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [02.Март.2016 18:26:46 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/7 "2016-03-02T18:26:46Z")

</div>

Doesn’t seem to be happening anymore. I assume the virtual DOM stuff fixed it?

I tested on iPad and Safari browser.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [02.Март.2016 18:48:57 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/8 "2016-03-02T18:48:57Z")

</div>

I cannot reproduce it anymore. Also, swiping back is more awesome now, as there is no (noticeable) reload anymore 😄

Awesome work, @eviltrout! 🎉

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [02.Март.2016 19:03:11 UTC](https://meta.discourse.org/t/loading-gets-stuck-after-navigating-back-from-external-link/38432/9 "2016-03-02T19:03:11Z")

</div>


