Tag

hash mode

1 views collected around this technical thread.

Tencent Music Tech Team
Tencent Music Tech Team
Nov 6, 2021 · Frontend Development

Web Routing in Single‑Page Applications: Hash, History, and Memory Modes

The article explains client‑side routing for single‑page applications, detailing three approaches—hash mode using location.hash and onhashchange, history mode leveraging the HTML5 History API’s pushState/replaceState with popstate handling, and memory mode storing routes in JavaScript or localStorage—plus their trade‑offs regarding URL readability, SEO, server configuration, and browser support.

Frontend DevelopmentSPAhash mode
0 likes · 11 min read
Web Routing in Single‑Page Applications: Hash, History, and Memory Modes
New Oriental Technology
New Oriental Technology
Dec 14, 2020 · Frontend Development

Understanding SPA Router: Hash vs History Mode and Server Configuration

This article explains how single‑page applications use router mechanisms, compares hash and history routing modes, and demonstrates the required server‑side (Node) and Nginx configurations to make history mode work without page reloads, including code examples and best‑practice tips.

SPAfrontendhash mode
0 likes · 7 min read
Understanding SPA Router: Hash vs History Mode and Server Configuration