harlan-zw / unlighthouse

Scan your entire site with Google Lighthouse in 2 minutes (on average). Open source, fully configurable with minimal setup.
https://unlighthouse.dev
MIT License
3.81k stars 110 forks source link

Skip JavaScript flag ignored #170

Closed Bjortin closed 7 months ago

Bjortin commented 11 months ago

Describe the bug

I've been trying to use both the CLI and CI approach, with and without configuration files, and JavaScript is not disabled regardless of file configuration or flags.

(JavaScript content is rendered despite this flag) --disable-javascript

(JavaScript content is rendered despite this property of the scanner) scanner.skipJavascript = ture

Reproduction

No response

System / Nuxt Info

No response

harlan-zw commented 7 months ago

This flag is used to allow the crawler to work with SPAs, it's disabled by default and does work.

Can you provide some more context on why you want it disabled and I can give you some idea of what you're looking for? FWIW it's not possible to run Lighthouse with js disabled.