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

Load Stripe only for specific pages #37

Open
oceanByte opened this issue Apr 30, 2021 · 2 comments
Open

Load Stripe only for specific pages #37

oceanByte opened this issue Apr 30, 2021 · 2 comments

Comments

@oceanByte
Copy link

Is there a way (or feature planned) to load stripe only for specific pages?

I'd like to avoid that my users have to load the script if they just want to browse the webpage and have not decided to buy anything yet.

@StirStudios
Copy link

I second this or is there any way to have the script delayed? For example we used this technique to get better performance from Josh: https://deltener.com/blog/nuxt-third-party-code-is-poison/

@StirStudios
Copy link

@oceanByte this has been the closest we have found to what we need: https://www.npmjs.com/package/nuxt-stripejs. Have you tried it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants