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

Attempt to fix #285 #351

Closed
wants to merge 1 commit into from
Closed

Conversation

clayallsopp
Copy link
Contributor

This is tricky, see the comment. The core issue is that once a script is added to the page, there's not a generic way to check "is it loaded" (since the load event won't get fired if you add a listener too late) - each script could have its own way to check (which is what we do with window.Plaid below), but there doesn't seem to be a browser API to determine this.

Other solutions make different trade-offs (eg if it isn't loaded,

I also considered using patch-package (or copy-pasting) on the script hook to implement more logic to detect if the script was

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.

1 participant