Using named pages creates extraneous blank pages when all pages are wrapped in a container or loaded dynamically
I was able to make a simple reproduction of this issue here: https://gist.github.com/bendavis78/ae2ad52e527f41340255969af41326bf
I'm loading my pages asynchronously, and am appending pages to a <main>
element within <body>
. As soon as I tried using named page groups, I found it created extra blank pages before (and sometimes after) the named page.
This also appears to happen if page elements are loaded in dynamically using document.body.appendChild()
(so the container element is not what breaks it in this case). See here for example: https://gist.github.com/bendavis78/22b518d963c9e0e7b1ec3fd2cdb134ff