Next.js · Junior · Question 75 of 75

Which next/script strategy loads a script during browser idle time, e.g. a chat widget?

Explanation

afterInteractive (the default) loads right after hydration starts; beforeInteractive is for critical scripts before any Next.js code. Low-priority widgets fit lazyOnload.

Further reading

Problem with a question

Next.js · Junior · question 75

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz