1 | initial version |
No, the onload event for a script element is only triggered once when the script is initially loaded. If you want to execute code every time the src is modified, you would need to use a different approach, such as periodically checking the src with a timer or using a library that handles dynamic script loading such as RequireJS.