Event when H5P dom is ready

In my javascript code, I would like to run a function after the H5P dom is finished, i.e. all questions are displayed. Is there any way to do this?

falcon's picture

I'm in a hurry, but you could experiment with H5P.externalDispatcher.on('domChanged', function(data) {console.log('C');});

Data may hold $target, library and key IIRC

It works, thanks! This also solves my problem with setting the "preload" attribute and probably some others.

falcon's picture

:)