You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
One of our customers asked us to track down why our software stops executing adding code to the page when they try to follow this recommendation on how to handle Google Analytics V4.
In their example, they show adding the script to the page with a MIME of text/plain, and later switching it to text/javascript for code execution.
I tracked this down to an issue within postscribe where a script begins the this._onScriptStart call, but never invokes the _onScriptDone handler. This makes sense from the perspective that this file is downloaded as plain text. However, something is getting messed up with the internals of postscribe and no other processing seems to be occurring. The done callback lifecycle is also never executed when making a call to the postscribe object.
I've created a minimal example to show the problem. If you change the MIME of script 1 to be text/javascript, then script 2 begins to execute.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
One of our customers asked us to track down why our software stops executing adding code to the page when they try to follow this recommendation on how to handle Google Analytics V4.
In their example, they show adding the script to the page with a MIME of
text/plain
, and later switching it totext/javascript
for code execution.I tracked this down to an issue within postscribe where a
script
begins the this._onScriptStart call, but never invokes the _onScriptDone handler. This makes sense from the perspective that this file is downloaded as plain text. However, something is getting messed up with the internals of postscribe and no other processing seems to be occurring. Thedone
callback lifecycle is also never executed when making a call to thepostscribe
object.I've created a minimal example to show the problem. If you change the MIME of script 1 to be
text/javascript
, then script 2 begins to execute.The text was updated successfully, but these errors were encountered: