3 ms·
If you're embedding the HTML inside the document at render time, why not just render it straight up without the comments? If you want the HTML fragment to appea
by mustpax 18y ago
If you're embedding the HTML inside the document at render time, why not just render it straight up without the comments? If you want the HTML fragment to appear only when JavaScript is present, include style="display: none" at first, and set display = 'block' after onload.
This could be useful as a mini-templating engine for JavaScript but the article doesn't talk about that. I'd still be concerned about the performance impact of parsing HTML every time a partial page update is applied.