Skip to content

Commit b89a513

Browse files
committed
docs(common): CHECKOUT-4455 Update documentation to reflect latest changes
1 parent f15e624 commit b89a513

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ loader.loadScripts([
3838
]);
3939
```
4040

41-
This is different to calling `loadScript` multiple times because it can ensure that the scripts are downloaded in parallel but executed in the same sequence as the provided list of URLs.
41+
To load a script with `async` attribute:
42+
43+
```js
44+
loader.loadScript('https://cdn.foo.bar/main.js', { async: true });
45+
```
4246

4347
To preload or prefetch a script:
4448

@@ -65,6 +69,8 @@ loader.preloadScripts([
6569
], { prefetch: true });
6670
```
6771

72+
For browsers that don't have the ability to `preload` or `prefetch` resources, scripts will be loaded using regular Ajax requests instead.
73+
6874
### For stylesheets
6975

7076
To load a single stylesheet:

0 commit comments

Comments
 (0)