question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instant loading makes print dialog autoclose

See original GitHub issue

When I add navigation.instant theme option CTRL + P dialog closes on any page. The problem is gone when I remove that option.

To reproduce

  1. Go to https://majkinetor.github.io/mm-docs-template/
  2. Hit CTRL + P wait 2 seconds
  3. Print dialog should close by itself

Sometimes CTRL + P works the first time but just hitting F5 or ctrl + F5 and then doing it again can change the outcome.

  • I’ve read the [contribution guidelines][1] and agree with them

I’ve found a bug and checked that …

  • … the problem doesn’t occur with the default MkDocs template
  • … the problem is not in any of my customizations (CSS, JS, template)
  • … the documentation does not mention anything about my problem
  • … there are no open or closed issues that are related to my problem

Package versions

  • Python: 3.6
  • MkDocs: 1.1.2
  • Material: 6.2.6

Project configuration

System information

  • Windows 10 10.0.19042 N/A Build 19042
  • Chrome 88.0.4324.104 (sometimes work, mostly doesn’t)
  • Edge 88.0.705.56 (never works)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
majkinetorcommented, Feb 3, 2021

I can confirm that master works.

1reaction
majkinetorcommented, Feb 2, 2021

No problem. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Close window automatically after printing dialog closes
The best way is closing the popup window once the print dialog is closed (printing is done or cancelled). At this moment, the...
Read more >
449109 - window.print() at page load immediately returns ...
The tab immediately closes when it's opened by a script, as user created tabs can't be closed with window.close(). On Android, this causes...
Read more >
Opening a PDF brings up the Print dialog - Super User
Open Edit -> Preferences; Click on Javascript on the left-hand pane; Uncheck Enable Acrobat Javascript on the right-hand pane.
Read more >
3 Quick Ways to Enable or Disable Chrome's System Print ...
1. How do I turn off the Print dialog box in Chrome? · Right-click your Google Chrome desktop shortcut. · Select the Properties...
Read more >
Print Dialog Boxes Slow to Open - Adobe Support Community
30 seconds to open dialogue box, slow to change anything within it and slow to exit or print other than to cancel the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found