- Issue created by @Grevil
- 🇩🇪Germany jan kellermann
You are using "module" for type-attribute. I suspect that this can cause the problem. I have to check later.
- 🇩🇪Germany jan kellermann
I added the handling for given type.
Can you please test, review and feedback?
Thank you!
- 🇩🇪Germany Anybody Porta Westfalica
Nice finding @jan kellermann that looks promising and totally makes sense! Thank you for the super quick reply!
- 🇩🇪Germany Grevil
Ok, the script is present now! Unfortunately at the time, that the vidstack player gets initiated, klaro hasn't finished processing the script yet, and therefore we still have the same warning in the console output:
Uncaught Vidstack Player JS library could not be loaded.
So if klaro is present, we somehow need to wait for klaro until we can fire our script. I tried to add klaro/klaro as a dependency to our script, but it doesn't seem to fix the problem...
@anybody, any idea? Should we continue with this problem in the vidstack_player module?
- 🇩🇪Germany Anybody Porta Westfalica
No idea yet, sorry. Sounds like some kind of race condition / timing issue...
- 🇩🇪Germany jan kellermann
I have the same problem without klaro but bigpipe enabled.
Maybe change your loading pattern like this?
https://git.drupalcode.org/project/klaro/-/merge_requests/58.diff