by Entlin · 15y ago · 0 comments
Steps to replicate: 1. Visit article 2. Click on logo to go to the home page 3. Scroll down until more content gets loaded 4. Click back button
Expected behaviour: Get moved back to the article page Encountered behaviour: Still at front page, scrolled to the middle.
Using Safari 5.0.5, OS X 10.6.7
For you, it would seem best to remove the previous page content when adding the new content. That way pressing "back" will be super fast, page loading will be fast, and the web will still be happy.
Unfortunately this guy's script takes it a little too far for browsers that DO support bfcache and unfortunately breaks functionality a bit, or at least makes it confusing, despite it being intended functionality or not.