3 ms·
But it is a lot more responsive. Is there a way to make it degrade gracefully? The problem I see is that you can't have the JS and non-JS parts have the same U
by jules 16y ago
But it is a lot more responsive.
Is there a way to make it degrade gracefully? The problem I see is that you can't have the JS and non-JS parts have the same URLs. The JS part will have urls like thesite.com/#question123, whereas the non-JS site will have urls like thesite.com/question123. So now you have two urls for each page, giving problems with search engines (and I think search engines will consider thesite.com/#x the same url as thesite.com/#y, and only load one of them).
- mythz 16y agoYeah if it were a real app I would definitely go through the effort of having it degrade gracefully and crawlable. Although for those interested Google has a proposal for crawling Ajax sites: http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html http://googlewebmastercentral.blogspot.com/2009/10/proposal-...
- numix 16y agoYou could use the new pushState() to change the url (https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history https://developer.mozilla.org/en/DOM/Manipulating_the_browse...). A good example is Github's repo browser.
- mythz 16y agopushState() / twitter-like Ajax REST-ful Url's now added!