~/talk

Master Scripts & Third Parties in Next.js

Talkat Frontend Nation 2024 · 2024-06-04..06-07· [react, web-platform]
links:none on file
slides:none on file

Next.js Script component lets apps add external and inline scripts with an ID, event handlers (onReady/onLoad/onError) and explicit loading strategies like beforeInteractive, afterInteractive and worker, so you control timing and thread. Chrome UX Report shows more third‑party scripts correlates with worse Core Web Vitals. next‑third‑parties ships plug‑and‑play wrappers (Google Tag Manager ~66% of sites, Google Analytics ~52%), Google Maps and a lightweight YouTube embed that lazy loads via thirdpartycapital JSON manifests for optimal scripts/styles injection.

AI-written summary · about

  1. 0:00Next.js third-party scripts
  2. 1:26Third-party resources
  3. 3:12Challenges in Next.js
  4. 4:15Next.js Script component
  5. 6:44Script placement and execution
  6. 7:46Optimizing script loading
  7. 9:11Script event handlers
  8. 12:26Next.js Third Parties
  9. 14:53How Third Parties work
  10. 18:05Q&A
~/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.