3 ms·
I'm confused, don't the browser dev tools do exactly this? That seems better than sending pretty-printed HTML on the wire, which is a bunch of unnecessary bytes
by ameliaquining 5y ago
I'm confused, don't the browser dev tools do exactly this? That seems better than sending pretty-printed HTML on the wire, which is a bunch of unnecessary bytes that users have to pay for.
- oneeyedpigeon 5y agoThe browser dev tools display something very different to the source of the page - it's a live view of the document, for a start.
- ameliaquining 5y agoThat's addressed easily enough: disable JavaScript, so that the document can't change.
- oneeyedpigeon 5y agoUnless I haven't discovered the method, it's also a LOT harder to search the DOM for a given string using the dev tools than it is via source.
- ameliaquining 5y agoIn Chrome, you just Ctrl+F on the Elements tab and then start typing.