I’ve discovered there’s custom event for waiting until the new script tags in head load, but they don’t at all guarantee that i don’t get paypal is undefined errors. I haven’t tried updating hotwire, and I tried mixing window and hotwire events.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Injected javascript loaded after turbo:load
|
8 | 2186 | June 4, 2024 | |
|
Uncaught DOMException: CustomElementRegistry.define: 'turbo-frame' has already been defined as a custom element
|
4 | 2589 | December 23, 2020 | |
|
How to load the Stripe JS SDK on every page?
|
3 | 1138 | March 14, 2022 | |
|
Hotwire Native: Google Sign In lib not being initialized
|
0 | 89 | May 11, 2025 | |
|
Script added dynamically to head: is it executed again during cache restoration?
|
10 | 1220 | March 4, 2024 |