3 ms·
I can't reply to your last comment, so I'm going to to it here: > The point is that it's trivial to make a site like this usable without JS, with little effort
by slig 15y ago
I can't reply to your last comment, so I'm going to to it here:
> The point is that it's trivial to make a site like this usable without JS, with little effort. You just have to start with the right mindset.
How are you supposed to make a instant search usable without JS?
If it doesn't need to be instant, just normal search with a nice GET /search?q=border, one would have to program a server side script to do that search.
Or maybe you'd just want to show the whole reference on the HTML, then the JS would have to use that to do the search and hide/show the appropriate div, or you'd have to load everything twice (once in the HTML body and again via ajax). Even then, what's the point? It's a instant search. If the user can't use the only feature of it, he's better off googling.
Is there other way that I'm missing? I don't see that as "trivial".
- ricardobeat 15y agoIf you read the other parts of the thread, or check the source code, you'll see that the whole content is loaded at once. There are no further requests. It's all already there with `display:none`. document.getElementsByTagName('html')[0].className += ' js' .js #search-results { display:none; } That's basically all you need.