~/talk

Optimizing Third-Party Loading in Next.js

Talkat Next.js Conf 2023 · on Thursday, 2023-10-26· [web-performance, frontend-architecture]
slides:none on file

Data from 160,000 Next.js sites shows over 94% load at least one third party, 67% load five or more, and 2% load >50 third-party resources (~3,000 sites), and more third parties correlate with worse LCP and INP. Local tests add 10 popular scripts and spike total blocking time 65×. A concrete result is the new package @next/third-parties that wraps Next.js Script, ships a Google Tag Manager component with an event API, a light YouTube embed and lazy Google Maps; it’s live but early.

AI-written summary · about

  1. 0:00Optimizing third-party loading
  2. 1:31Third-party resources impact
  3. 3:39Third parties and performance
  4. 6:07Testing third-party impact
  5. 7:32Developer challenges with third parties
  6. 9:39Third-party limitations and solutions
  7. 10:22Next.js Script Component evolution
  8. 11:24Next.js third-party libraries
  9. 13:11Future plans and feedback
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.