Skip to content

fix: Revert that bundle will be appended to body #1943

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

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Mar 13, 2019

No description provided.

@HazAT HazAT self-assigned this Mar 13, 2019
@HazAT HazAT requested a review from kamilogorek as a code owner March 13, 2019 09:40
@getsentry-bot
Copy link
Contributor

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖 ✅ TSLint passed
📖 @sentry/browser gzip'ed minified size: 22.1562 kB

Generated by 🚫 dangerJS

@HazAT HazAT merged commit d9bb595 into master Mar 13, 2019
@HazAT HazAT deleted the ref/revert-loader-body-change branch March 19, 2019 11:36
@@ -58,6 +58,7 @@
// come out in the wrong order. Because of that we don't need async=1 as GA does.
// it was probably(?) a legacy behavior that they left to not modify few years old snippet
// https://www.html5rocks.com/en/tutorials/speed/script-loading/
var _currentScriptTag = _document.getElementsByTagName(_script)[0];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if it's null?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It cannot be null, as it's our own loader's script tag.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless it's some odd edge-case scenario in non-browser environment, but you shouldn't use a loader then anyway.

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

Successfully merging this pull request may close these issues.

4 participants