How do I tell if the js script is loaded


In “load on demand” requirements, we often judge that a callback function is returned when the script is loaded. How do we determine that the script is loaded?

A footnote is required for the readyState state: