Hi Morgan Plug alert! I wrote a couple of blog posts on this subject:
http://skilldrick.co.uk/2011/05/javascript-and-the-end-of-progressive-enhancement/ http://skilldrick.co.uk/2011/05/the-end-of-progressive-enhancement-revisited/ The first one generated a fair bit of Reddit discussion as well: http://www.reddit.com/r/programming/comments/h4pes/javascript_and_the_end_of_progressive_enhancement/ Since then I've been doing a lot of development with Backbone.js, putting those ideas into practice. I definitely think for web apps, we need to be sending JSON data to the browser for JavaScript to render. The Backbone model of separating data and presentation is excellent. Even if you don't want to use Backbone, have a go with it and learn how it works - it's a really powerful paradigm. Nick On 10 September 2011 03:44, Mo Cheng <[email protected]> wrote: > Hi All, > In highly AJAX-ified web site, XHR is used to update part of page, which > basically update partial HTML tags. Then we need to make a decision: > Should server render the HTML and sent in XHR response? or Should server > just return JSON data and have browser JavaScript render HTML according to > JSON data? > Anybody has experience in both approaches? Which is more performant? > > Thanks, > -Morgan > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- Nick Morgan http://skilldrick.co.uk @skilldrick Save our in-boxes! http://emailcharter.org -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
