I want to test a component (written in stenciljs) and in the initial function of the component, a script is loaded and onload a function should be executed. The function is