mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 08:45:05 +00:00
Safari uses an aggressive back/forward cache, which means the app loads very quickly when hitting Back. But, in topics with > 30 posts, hitting Back runs post stream calculations too early, which means that users get taken back to an earlier point in the stream, consistently. Using `onpageshow`, we can restore the correct location before the post stream calculations take place.