-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari back button shows spinner indefinitely #331
Comments
I'm experiencing this same problem too with version 2.3.2. When using spin.js to redirect the user to a new page, if the back button is used in Firefox the spinner shows until the page is refreshed. This doesn't happen in Chrome or Edge. |
Any update on this? |
I don't have a Mac to test Safari with, but my guess is that it's loading the entire state of the previous page when you press the back button. Perhaps you could work around this by stopping the spinner after a period of time, instead of setting it to spin indefinitely. |
This worked for me. |
Safari version 9.1.3 on OSX.
Write javascript "onclick" handler on link, which creates a spinner and then directs to given url.
Idea is to show spinner while the page is loading pointed by link. Therefore redirection is done using "setTimeout" after creating spinner js code.
Problem is when user hits browser back button after next page is loaded, the spinner is shown again and nothing happens. Here is the function called:
The text was updated successfully, but these errors were encountered: