library to make life better: https://github.com/defunkt/jquery-pjax since Feb.26 2011 https://github.com/welefen/pjax since Jul.21 2011 Tuesday, October 23, 12
request and response, waiting for the next page to show. We can’t... ✘ update the page partialy ✘ operate on the page meanwhile it communicates with the server. Tuesday, October 23, 12
a part of the page We can’t... ✘ no browser history ( can’t go back and forward) ✘ cannot share what you see to others with the link ✘ search engine crawlers can’t trigger ajax, don’t know your content ✘ json serialization Tuesday, October 23, 12
page with original HTML response, don’t need to support another data type. ✓ browser history preserved ( enabled by HTML5 pushState ✓ Search Engine friendly. ✓ no json serialization/deserialization and heavy DOM manipulation on the client. Tuesday, October 23, 12
quite good as DHH proposed. And you could write more ruby less javascript. It’s a little bit annoy dealing with the initialization code, because you need to call them again at pjax:success Tuesday, October 23, 12