Possible Duplicate:
Why is it a bad practice to return generated HTML instead of JSON? Or is it?
IF I send an AJAX request to a PHP file, what would result in faster rendering of HTML:
- Sending the completely formatted HTML straight from PHP, or:
- Just send JSON data and let Javascript do the HTML rendering?
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.
Is there even a conclusive answer?