I don't think the script is evaluated when added to the dom from the html lazy loader. The scripts needs to be explicitly added. The second part of it is that the lazy loading and empty array won't trigger the callback function.

I can do an effort at making things more explicit / comment the weirdness.