Just learning from Julie Blanc from Paged.js that you can load Paged.js as a module, which means that you can execute code before loading Paged.js. In this way, we can get rid of the <iframe> in the PDF view.
Just learning from Julie Blanc from Paged.js that you can load Paged.js as a module, which means that you can execute code before loading Paged.js. In this way, we can get rid of the `<iframe>` in the PDF view.
See:
- https://pagedjs.org/posts/paged-break-the-long-overdue-update/
- https://gitlab.coko.foundation/pagedjs/starter-kits (book-spread_esm is an example where this is applied)
- https://unpkg.com/browse/pagedjs@0.3.5/dist/ (the esm version of Paged.js is here)
`esm` basically stands for "paged.js as a module"
mb
changed title from Paged.js: load paged.js as a model to Load Paged.js as a model6 months ago
Just learning from Julie Blanc from Paged.js that you can load Paged.js as a module, which means that you can execute code before loading Paged.js. In this way, we can get rid of the
<iframe>
in the PDF view.See:
esm
basically stands for "paged.js as a module"Paged.js: load paged.js as a modelto Load Paged.js as a model 6 months ago