I’m working on administrative application.
I was thinking about making it fully AJAX-ed. Basically, there would be only one URL, and everything would be loaded via AJAX.
Are there any downsides to this approach? Will I miss full page reloads for any reason?
Thanks!
Yes
Users with javascript disabled can’t use it
Cannot bookmark a particular page
search engine’s may find it difficult to index your site
However, there are ways to mitigate/eliminate these disadvantages, eg. graceful degradation, support for browser’s history API (pushState etc.)
My preferred approach is to build a site without javascript, then add javascript support, so that links will use javascript to reload part of the page, then use pushState and co. to change the history so that the browser back button & bookmarks work again.
Another advantage of building AJAX on top of an HTML & server side only website is that the website works already, so you can gradually add AJAX, and the website continues to work even if you have not completely programmed all AJAX functionality.
If you are using the Ruby on Rails framework, you can try using my gem https://github.com/ronalchn/ajax_pagination. It helps you build AJAX support with graceful degradation.