https://github.com/clutchio/clutch/blob/master/django_ext/ht...
https://github.com/samuelclay/NewsBlur/blob/master/utils/jso...
Similarly, ways to mimic single-page-app URLs from the server side, for first-load speed or SEO benefits, could be discussed.
There is also an is_ajax() test in Django (not that useful) and various apps that provide REST interfaces that you'd probably want to use for bigger AJAX-y apps.