INP Optimization Hints
Checks for Interaction to Next Paint optimization
Checks for Interaction to Next Paint optimization
| Rule ID | perf/inp-hints |
| Category | Performance |
| Scope | Per-page |
| Severity | info |
| Weight | 5/10 |
Solution
INP measures responsiveness to user interactions. Improve by: 1) Minimize third-party scripts that block the main thread. 2) Use async/defer for non-critical scripts. 3) Break up long JavaScript tasks into smaller chunks. 4) Use web workers for heavy computations. 5) Implement code splitting to reduce initial bundle size. Consider using requestIdleCallback for non-urgent work.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["perf/inp-hints"]Disable all Performance rules
squirrel.toml
toml[rules]
disable = ["perf/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["perf/inp-hints"]
disable = ["*"]