which is faster
I am updating an html page by adding a lot of divs (some nested) and input elements. I want to know if it is faster to send down the html as a string and then on the client side set the innerHTML of my container div OR if it is faster to send down a JSON (nested) object and have the client side get the JSON structure and create DOM elements for each element in my JSON structure and append those to my container DIV?
Thanks
|