Skip to content

Commit 4dde26a

Browse files
authored
Change ordering of jszip and epub.js
JSZip must be loaded before Epub JS or Epub JS will return a promise that never completes, without an error message. The docs present these dependencies in opposite order, which trips up initial setup. Closes #1167 Closes #1248
1 parent 3565e47 commit 4dde26a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ More specifically, the EPUB schema standardizes the table of contents, provides
2020

2121
## Getting Started
2222

23-
Get the minified code from the build folder:
23+
If using archived `.epub` files include JSZip (this must precede inclusion of epub.js):
2424

2525
```html
26-
<script src="../dist/epub.min.js"></script>
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
2727
```
2828

29-
If using archived `.epub` files include JSZip:
29+
Get the minified code from the build folder:
3030

3131
```html
32-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
32+
<script src="../dist/epub.min.js"></script>
3333
```
3434

3535
Set up a element to render to:

0 commit comments

Comments
 (0)