Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve paged.js load time for print #61

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

cjshearer
Copy link
Owner

Waiting to dynamically load paged.js onbeforeprint will cause users on slow connections to occasionally get a print dialog showing the document's web format, instead of the print format. As we cannot make onbeforeprint wait until paged.js loads, we now load it as soon as the page's javascript is processed.

Waiting to dynamically load paged.js
`onbeforeprint` will cause users on slow
connections to occasionally get a print dialog
showing the document's web format instead of the
print format. As we cannot make `onbeforeprint`
wait until paged.js loads, we now load it as soon
as the page's javascript is processed.
@cjshearer cjshearer merged commit 2544803 into main Jul 29, 2024
2 checks passed
@cjshearer cjshearer deleted the fix/improve-paged-js-load-time-for-print branch July 29, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant