You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows asynchronous loading of scripts in a Single Page Application (or anything else, in fact):
9
+
Allows asynchronous loading of scripts and styles in a Single Page Application (or anything else, in fact):
10
10
11
11
* Using a test to ensure that the code is only loaded once
12
12
* Running a callback once the script is loaded
@@ -19,6 +19,12 @@ Having integrated a multitude of third-party SDKs from large, well known provide
19
19
20
20
### Usage
21
21
22
+
You pass a list of urls to the loader, along with a method for checking that your page is ready, and a callback to call when it is.
23
+
24
+
Urls can be scripts or stylesheets.
25
+
26
+
### Script Tags
27
+
22
28
You can use the module like so, for a library loaded from example.com, which, when loaded, adds an attribute called PROVIDER to the global window object.
23
29
24
30
```js
@@ -35,7 +41,31 @@ You can use the module like so, for a library loaded from example.com, which, wh
0 commit comments