4 ms·
As others have said, it's to show the data without reloading the page. They could of course do it without actually adding anything to the url - but then it won
by Illniyar 10y ago
As others have said, it's to show the data without reloading the page.
They could of course do it without actually adding anything to the url - but then it won't be bookmarkable (and refresh would get you back to a page without results).
They could use the new history pushstate api, but then:
1. it won't work in older browsers
2. if they wanted it to work in older browsers they'll have to shim it (which ends up using hashes anyway) - and maintain it, and it will add the the page download size, which google (at least in the main site) take very seriously.
- oneeyedpigeon 10y agoWhy would google.com/?q=search-term not be bookmarkable?
- benbayard 10y agoOP is saying if you do not update the URL between searches it will not be bookmarkable. Not, if you update the URL with the actual search term in a query string. The reason they do not update the URL query string itself is due to browser incompatibility. Doing it this way they get support for all browsers released after 2010, whereas they could only support IE 10 or greater by using History.pushState