Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Third-Party Scripts Meets Nuxt Developer Experience.

License

NotificationsYou must be signed in to change notification settings

nuxt/scripts

nuxt-scripts-social-card

npm versionnpm downloadsLicenseNuxtVolta

Nuxt Scripts

Better Privacy, Performance, and DX for Third-Party Scripts in Nuxt Apps.

Important

Nuxt Scripts is in beta, use with caution as some APIs may change.

Features

  • 🪨 Built on top ofUnhead Script Loading
  • 🎁 20+ third-party scripts integrations with fine-grained performance optimizations
  • 🏎️ Performance: Self hosting, advanced script loading triggers, best-practice defaults.
  • 🕵️ Privacy: Defaults to protect end users identity, script consent management APIs.
  • 🪵 DevTools: View your script with their status and see function logs
  • 🚀 0 dependencies, ~2kb minimal runtime

Background

Loading third-party IIFE scripts usinguseHead composable is easy. However,things start getting more complicated quickly around SSR, lazy loading, and type safety.

Nuxt Scripts was created to solve these issues and more with the goal of making third-party scripts more performant,have better privacy and be better DX overall.

🚀 Quick Start

To get started, simply run:

npx nuxi@latest module add scripts

That's it! The Nuxt Scripts module should be downloaded and added to your Nuxt Configmodules.

⛰️ Next Steps

Need some inspiration to start using Nuxt Scripts? Try out the following:

  1. 🎉 Make it rain emojis with theConfetti Tutorial.
  2. 📚 Learn about how theScript Loading works.
  3. 🔍 Explore theScript Registry for popular pre-configured third-party scripts.
  4. 🚀 Load other scripts withuseScript orGlobal Scripts.
  5. 🔨 Fine-tune your performance and privacy withBundling andConsent Management.

⚖️ License

Licensed under theMIT license.

About

Third-Party Scripts Meets Nuxt Developer Experience.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp