~/talk

An introduction to Nuxt Scripts

Talkat Nuxt Nation 2024 · 2024-11-12..11-13· [security, developer-experience]
slides:none on file

Nuxt Scripts presents a concrete system: a useScript composable with a script registry (about 22 presets) that adds preload links, inserts script tags post-hydration, and offers triggers for element visibility or consent, a proxy that queues API calls, and script bundling/self-hosting as an opt-in to reduce third‑party risk. Benchmarks claim a ~46% faster YouTube embed when using headless facade components. The talk cites webalmanac stats (92% of sites use third parties, ~5 providers/78 requests) and notes low use of integrity checks (~23%) and CSP (<19%).

AI-written summary · about

  1. 0:00Nuxt Scripts intro
  2. 1:47Why Nuxt Scripts created
  3. 4:15Third-party script problems
  4. 9:34Security risks of scripts
  5. 11:01Performance impact of scripts
  6. 13:10Scripts in Nuxt apps
  7. 16:23Traditional script loading issues
  8. 17:45Solutions with Nuxt Scripts
  9. 18:49How Nuxt Scripts works
  10. 20:36useScript composable features
  11. 21:42Script lifecycle control
  12. 22:04Script bundling for performance
  13. 22:47Script registry and integrations
  14. 23:50Programmatic and global setup
  15. 24:10Facade components for libraries
  16. 25:38Future plans for Nuxt Scripts
  17. 26:45Q&A: Benefits over traditional
  18. 27:29Q&A: When to avoid Nuxt Scripts
  19. 28:10Q&A: Cookie consent libraries
  20. 29:37Closing remarks
~/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.