Skip to content

Commit

Permalink
Change ordering of jszip and epub.js
Browse files Browse the repository at this point in the history
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 futurepress#1167
Closes futurepress#1248
  • Loading branch information
cbednarski authored Dec 17, 2022
1 parent 3565e47 commit 4dde26a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ More specifically, the EPUB schema standardizes the table of contents, provides

## Getting Started

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

```html
<script src="../dist/epub.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
```

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

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
<script src="../dist/epub.min.js"></script>
```

Set up a element to render to:
Expand Down

0 comments on commit 4dde26a

Please sign in to comment.