Simplify asset handling commit causes a lot of problems

Created on 27 June 2025, 9 days ago

Sorry, for re-opening this task and creating this new issue:

This commit
https://git.drupalcode.org/project/h5p/-/commit/289f5587bbcd3b38a6322b0c...
causes the problem: "Simplify asset handling".

h5p.js tries to access drupalSettings and more before the document is lodad.
This causes all the other problems, for example:

https://www.drupal.org/project/h5p/issues/3526592 🐛 Cannot read properties of undefined (reading 'activeSurface') Active
https://www.drupal.org/project/h5p/issues/3526163 🐛 Missing iframe height after updating to newer version Active
and so on.

Could you please rewrite this commit?
Thank you.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇹Austria drupalfan2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024