remove without-javascript audit
See original GitHub issueMy home page does not require JavaScript (except to start the service worker) and looks fine with it disabled. I added a <noscript>
element and can see its text display, but the test doesn’t care (probably because it doesn’t run).
Provide the steps to reproduce
- Run LH on localhost - I’ll upload the latest version to prod in the next few days and update this report.
What is the current behavior?
Test doesn’t even run.
What is the expected behavior?
Test runs and passes
Environment Information
- Affected Channels: Extension
- Lighthouse version: 100.0.0.0
- Chrome version: Google Chrome 85.0.4183.102 (Official Build) (64-bit)
- Revision ffe848af6a5df4fa127e2929331116b7f9f1cb30-refs/branch-heads/4183@{#1770}
- OS Linux
- JavaScript V8 8.5.210.20
- Flash 32.0.0.433 /home/gpeterso/.config/google-chrome/PepperFlash/32.0.0.433/libpepflashplayer.so
- User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
- Command Line /usr/bin/google-chrome-stable --flag-switches-begin --flag-switches-end
- Node.js version: NONE
- Operating System: Ubuntu 18.04
Related issues #11455 Failing this previous test may break some subsequent ones, IDK.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How Do I Remove Unused JavaScript From My Website?
When it comes to unused JavaScript, things are simple: the more unused code your page contains, the longer it takes to open the...
Read more >Remove unused JavaScript - Chrome Developers
Learn how to pass Lighthouse's "Remove unused JavaScript" audit.
Read more >A Lifehack for removing unused JS/CSS.. or just unminify
Open Chrome DevTools. Control + Shift + I · Open the Command Menu. Control + Shif t +P · Type + click the...
Read more >Lighthouse: Reduce unused JavaScript - GTmetrix
Expanded view of Remove unused JavaScript audit. GTmetrix evaluates the potential file size savings that arise from reducing unused JavaScript code.
Read more >Remove unused code - web.dev
Registries like npm have transformed the JavaScript world for the better by ... But we often include libraries we're not fully utilizing.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That does mean e.g. example.com (and any other completely static site) would fail the audit 😕 I would guess that those are more common than sites not serving something on
http
(whether or not it’s a redirect).Another option worth considering is retiring the
without-javascript
audit in the next major release. No one has ever really expressed interest or ideas on how to make this obviously ham-fisted audit better and actually test what it claims to be doing. Maybe it’s not worth keeping until (and if) some new approach is developed?We’re going to delete the without-javascript audit for lighthouse v7