Why this matters
Controls priority, reduces blocking, and improves security/CSP.
For third-party scripts, use <Script> with an appropriate strategy and onLoad callbacks. Avoid dangerouslySetInnerHTML for scripts.
Controls priority, reduces blocking, and improves security/CSP.
Side-by-side examples engineers can pattern-match during review.
<script>/* vendor inline */</script>import Script from 'next/script'
export default function Analytics(){ return (<Script src="/vendor.js" strategy="afterInteractive" />) }Inline <script> in layout<Script strategy="afterInteractive" />From the same buckets as this rule.