afterInteractive
The default next/script strategy, which loads the script early but after some hydration has happened.
In more detail
Suits tag managers and analytics that should start soon but need not block the page. It is the default when no strategy is given.
Related terms
- next/script — The Next.js Script component, which loads third-party JavaScript with a chosen strategy so it does not block the page.
- Google Tag Manager — A Google service that loads and manages tracking and marketing tags on a site from one container script.
Taught in
- Script Optimization: next/script & Lazy Third Parties — Next.js 15 & Modern App Router Architecture