Subchapter 7.44
references/support-topics/next-script-third-party-strategy.mdMarkdown1 KBView on GitHub
Third-party scripts are only actionable when they line up with the poor metric and route. For LCP or INP, prove a specific script blocks critical rendering, hydration, or interaction.
Inspect next/script, raw <script>, tag managers, chat widgets, analytics, and consent code. Check beforeInteractive, afterInteractive, lazyOnload, and whether the script is route-local or global.
Do not move required bot detection, consent, auth, or payment scripts later without product evidence. Do not recommend worker for App Router.
Name the poor metric, script source, current strategy, and the exact route or layout line to change.