How do I tell if the js script is loaded

  • 2020-03-30 02:07:54
  • OfStack

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:

Related articles: