Hi!
I try to setup a local plugin which hooks into H5P content by using their embed.php. Everything works as intended, when 'JavaScript Cache' is turned of (either through the config.php or admin dashboard). The plugin gets loaded, right after the video is initialized on the page.
But when caching is turned on, the plugin and some other JS files are not loaded at all (according to the browsers developer tools). I've observed this behaviour in Moodle 3.8.3 and now 3.9. Running grunt didn't solve the problem.