Change URL hash without page jump
Read OriginalThis article explains a common problem in web development where changing the URL hash causes an unwanted page jump. It presents a solution using the History API's pushState method to update the hash smoothly, avoiding visual flicker, and includes a fallback using location.hash for older browser compatibility. It also covers the browser support for this technique.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
1
ServiceNow and Microsoft Copilot
Marius Sandbu
•
1 votes
2
The Learning Loop and LLMs
Martin Fowler
•
1 votes