Next.js · Junior · Question 75 of 75
Which next/script strategy loads a script during browser idle time, e.g. a chat widget?
- ✓Correct answer:
lazyOnload - 2
beforeInteractive - 3
afterInteractive
Explanation
afterInteractive (the default) loads right after hydration starts; beforeInteractive is for critical scripts before any Next.js code. Low-priority widgets fit lazyOnload.