title: Performance-wise: request JSON and render in JS, or request the entire HTML?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1284381/why-is-it-a-bad-practice-to-return-generated-html-instead-of-json-or-is-it">Why is it a bad practice to return generated HTML instead of JSON? Or is it?</a>  </p>
  </blockquote>
  
  
  
  <p>IF I send an AJAX request to a PHP file, what would result in faster rendering of HTML:</p>
  
  <ol>
  <li>Sending the completely formatted HTML straight from PHP, or:</li>
  <li>Just send JSON data and let Javascript do the HTML rendering?</li>
  </ol>
  
  <p>I have a rather complex HTML structure, and this puts download time of a large HTML chunk vs. the times Javascript (jQuery) needs to render the same structure.</p>
  
  <p>Is there even a conclusive answer?</p>