🎨✨ Read More ↓ ↓ ↓
Imagine this scenario:
You clicked on the browser's back button and returned to the previous long-list page.
But the page somehow got refreshed, and all your browsing position has been reset.
It's really an annoying thing whoever the user is.
The Back/forward cache is a #browser #optimization that significantly improves the browsing #experience focused on this scenario.
It's an in-memory cache that stores a complete snapshot of a page (including the JavaScript heap) as the user is navigating away.
The pageshow event fires right after the load event when the page is initially loading and any time the page is restored from #bfcache.
This is really useful if you want to reflect the changes users made before they came back.
#TinyFrontend #WebDevelopment #frontend #frontenddeveloper #frontenddev #frontenddevelopment #frontendwebdeveloper #frontendengineer #frontendengineering #frontendmasters #HTTP #JavaScript
Watch video #Browser online without registration, duration hours minute second in high quality. This video was added by user Tiny Frontend - 1 Minute Video Sharing 25 October 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 264 once and liked it 8 people.