You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf/inp-hints and perf/render-blocking count type="module" scripts as blocking #424
perf/inp-hints and perf/render-blocking count <script type="module" src=…> in <head> as blocking scripts. Module scripts are deferred by spec (HTML Standard: module scripts are fetched in parallel and evaluated after parsing, like defer), so they neither block rendering nor the parser.
perf/critical-request-chains already handles this correctly: it lists a classic local script but not a local module script.
Reproduce
Tested with v0.0.96 and v0.0.99 (linux-arm64), same result.
These are identical to the control page with classic <script src> tags.
Expected
Scripts with type="module" are not counted as blocking, the same as defer and async. That gives perf/inp-hints 0 blocking scripts and perf/render-blocking 1 resource (the stylesheet).
Activity
fix(rules): module scripts are not blocking in perf/inp-hints and per…
fix(rules): module scripts are not blocking in perf/inp-hints and per…