3 ms·
Why using a hash for url instead of url query parameters?
Why using a hash for url instead of url query parameters?
My guess is it's shorter and easier to share.
Using location hash minimizes the risk of accidental activation by automated scanners if the URL is logged somehow, as it requires using a browser for JavaScript to read it.