FANDOM


LoadScript searches the DOM <script> elements for a given src attribute. If found, it retrieves the remote script, optionally storing it as data in a variable and calling a callback. The functionality is similar to JSONP.