3 ms·
In client-side Javascript, document.documentElement.innerText yields only the rendered text, without markup, CSS or JavaScript source.
by altavox 10y ago
In client-side Javascript, document.documentElement.innerText yields only the rendered text, without markup, CSS or JavaScript source.
- arjie 10y agoBut the theory was that the source would be different, and only the rendered content would be the same at the sample place, right? How would you find the 'same place' without fully rendering the page?
- tedmiston 10y agoOne way is for the source to use cache control headers so you can just do a quick HEAD instead of a GET on the whole contents.