Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: add preload for script #93

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

williamchong
Copy link
Contributor

🔗 Linked issue

📚 Description

Adds script preload in to improve performance

Currently the gtag script is already loaded using async or defer, but still we cannot control the position of the <script> tag vs those injected by nuxt or other modules. The benefit of declaring preload in link is that the preload can start as early as possible, and won't be blocked by other <script>.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 20, 2024
Copy link

netlify bot commented Nov 20, 2024

Deploy Preview for nuxt-gtag ready!

Name Link
🔨 Latest commit e1de89e
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-gtag/deploys/673d2688bbaf8500085f4c10
😎 Deploy Preview https://deploy-preview-93--nuxt-gtag.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dosubot dosubot bot added the enhancement New feature or request label Nov 20, 2024
@johannschopplich
Copy link
Owner

LGTM. Thanks!

@johannschopplich johannschopplich merged commit 3fc77b8 into johannschopplich:main Nov 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants