redfin / react-server

:rocket: Blazing fast page load and seamless navigation.
https://react-server.io/
Apache License 2.0
3.89k stars 184 forks source link

Skip re-render on back nav in Safari #964

Open gigabo opened 7 years ago

gigabo commented 7 years ago

Webkit's page cache keeps a suspended page available for re-activation on back/forward navigation. The history navigation API also fires a popstate event, though, which triggers an unnecessary re-render. We can skip this.

About the page cache: https://webkit.org/blog/427/webkit-page-cache-i-the-basics/