NEXTJS_USE_NEXT_SCRIPT
Conformance is available on Enterprise plans
automatically optimizes scripts for improved performance through customizable loading strategies. By default, loads scripts so that they're non-blocking, meaning that they load after the page has loaded.
Additionally, has built in event handlers for common events such as and .
By default, this rule is disabled. Enable it by customizing Conformance.
For further reading, see:
- https://nextjs.org/docs/pages/building-your-application/optimizing/scripts
- https://nextjs.org/docs/pages/api-reference/components/script
This rule will catch the following code.
Replace any calls and elements that are caught by this rule with .
Was this helpful?