-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make script loading async? #5
Comments
Want to add sentry support to gatsbyjs.org but need this fixed first :-) Also @mickeyreiss-visor's PR looks good to me. Oh and here's a long issue about this getsentry/sentry-javascript#169 |
Possibly one of the solutions there could be a good fit. |
@KyleAMathews did you workaround this somehow or you still don't have Sentry in Gatsbyjs.org? |
Interested to hear if you got this going too @KyleAMathews. We had to turn Sentry off due to lots of errors coming from the Gatsby generated code. |
Thanks guys! I'll take a look at making it async. |
@gilesbutler I get a good number of errors as well on my site, but they are legit errors that mean that the user had to click a link twice or something like that. I think it's worth keeping it enabled to check out. |
Oh, instead of pulling it from a CDN, this plugin should just add it directly via their NPM package https://docs.sentry.io/clients/javascript/install/#npm
|
There's related talk in #6 about how to pull the library in. I agree and I'd like to get it to pull from npm. I just copied the Google Analytics plugin to get Sentry loading on my site. |
@octalmage Any update on pulling from NPM? |
I sent a pull request regarding the loading from NPM instead of the CDN #9 |
I have to remove the plugin because of that, scripts are usually never added to the |
Version v0.1.0 has been published to npm which resolves this, and it's also been deployed to my site https://jason.stallin.gs and appears to be working. Got some errors related to cached bundles so I got to see it work in production. Thanks everyone! |
Currently you're adding the script into the head which will block the page loading until the script is downloaded.
/cc @mickeyreiss-visor
The text was updated successfully, but these errors were encountered: