title: Window.open and window.print blocking JavaScript
body: <p>I have a site where a particular page has two buttons that open pages in new tabs. One page is a preview of an item, and one is the print of that item.</p>
  <pre><code>// Preview button's click event
  window.open('my.preview.url.com', 'preview');
  
  // Print button's click event
  window.open('my.print.url.com, 'print');
  </code></pre>
  <p>On the print page, <code>window.print();</code> is call on page load.</p>
  <p>This seems to create a bit of an issue on some browsers. Opening the print page and not closing the print preview results in all of the JavaScript being blocked on the originating page (with the buttons) and  the preview page (if one had been opened previously).</p>
  <p>This appears to not happen in all browsers. For example, Chrome displays the issue but Firefox does not.</p>
  <p>This is similar to <a href="https://stackoverflow.com/questions/43133587/window-open-and-window-print-in-the-new-window-blocks-javascript-in-parent-w">a similar unanswered post</a>, which has a useful fiddle at <a href="http://jsfiddle.net/Zicane/7ntsb7hh/10/" rel="nofollow noreferrer">http://jsfiddle.net/Zicane/7ntsb7hh/10/</a></p>
  <p>Hoping someone might know the solution to both issues.</p>