mizdra / bfcache-and-page-transitions-during-fetching-test

Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

The comparison of the behavior of different browsers when a page transitions during fetching of a resource from b/f cacheable page and back to the page.

Setup

npx serve .
open http://localhost:3000/1-basic

Summary

Comparison steps:

  1. Open http://localhost:3000/1-basic (b/f cacheable page)
  2. Click Fetch resource and transit to another page button
  3. Browser back to the previous page

The behavior of each browser is as follows:

Recordings:

Chrome 129.0.6668.59(Official Build) (arm64) / macOS 15.0 https://github.com/user-attachments/assets/638a2d28-5b2e-4c1c-a79c-4317b7438d6a
Firefox 130.0.1 (64-bit) / macOS 15.0 https://github.com/user-attachments/assets/bd7ffa39-2f5f-46a9-b33c-a0d48b9b0797
Safari 18.0 (20619.1.26.31.6) / macOS 15.0 https://github.com/user-attachments/assets/3f560784-3407-4a45-b7a5-822acb20f237

Additional information

In the case of a React application

You can try it below.

cd 2-complex
npm i
npm run dev
open http://localhost:5173/

Comparison steps:

  1. Open http://localhost:5173/ (b/f cacheable page)
  2. Click Fetch resource and transit to another page button
  3. Browser back to the previous page

The behavior of each browser is as follows:

Recordings:

Chrome 129.0.6668.59(Official Build) (arm64) / macOS 15.0 https://github.com/user-attachments/assets/061723fb-51b6-43e9-8c87-d9ada29c0abe
Firefox 130.0.1 (64-bit) / macOS 15.0 https://github.com/user-attachments/assets/383d2580-e413-4c6e-8fae-f1692892ecd1
Safari 18.0 (20619.1.26.31.6) / macOS 15.0 https://github.com/user-attachments/assets/34db8c67-24e2-4edf-9176-1dfddfb0344a

References

License

CC0-1.0