Skip to content

Commit 3931a5e

Browse files
Add link to es5-shim
[closes then#22]
1 parent 3ed2237 commit 3931a5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ You can use browserify on the client, or use the pre-compiled script that acts a
2323
<script src="https://www.promisejs.org/polyfills/promise-4.0.0.js"></script>
2424
```
2525

26+
Note that the [es5-shim](https://github.com/es-shims/es5-shim) must be loaded before this library to support browsers pre IE9.
27+
28+
```html
29+
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.min.js"></script>
30+
```
31+
2632
## Usage
2733

2834
The example below shows how you can load the promise library (in a way that works on both client and server). It then demonstrates creating a promise from scratch. You simply call `new Promise(fn)`. There is a complete specification for what is returned by this method in [Promises/A+](http://promises-aplus.github.com/promises-spec/).

0 commit comments

Comments
 (0)