How to set event listener on pyscript libs loading?

hi everyone~

i am from korea, so i can’t english well. sorry.

i have a question.

please help me~!!

i want to set event listener on pyscript librarys loading.

How can I do this with JavaScript code?

thank you !