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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-03-14 11:00:00 +0000
Seen: 8 times
Last updated: Dec 13 '22
What is the maximum number of emails one can send per day using Google Apps Script?
How can a Qt application detect a trigger triggered by a batch script?
How to make a game object move continuously back and forth between two positions in Unity?
Why does the import of a dependency fail in a Node.js script when running inside a Docker container?
What is the process for utilizing environment variables in the package.json script through .env?
If the take profit or stop loss is reached, do the entries exit on the next bar in Pine Script?