logoalt Hacker News

CorneredCoroneryesterday at 9:57 PM3 repliesview on HN

> A headless browser that loads the HTML but doesn't execute the JavaScript bundle won't have them.

this is meaningless btw. A browser headless or not does execute javascript.


Replies

jaccolayesterday at 10:27 PM

I disagree, a browser can have javascript execution disabled (and this is somewhat common in scraping to save time/resources).

I read it to mean: "A browser that doesn't execute the JavaScript bundle won't have [the rendered React elements]." Which is true.

show 2 replies
girvoyesterday at 10:18 PM

A bunch of the points in this AI generated blog post were like that. Makes me feel dirty when I'm 1/3rd of the way through and I realise how off it is.

thisisnowyesterday at 10:44 PM

Hah, sure, you just let random JS execute from random sites on your machine...