title: Page print preview no data on first try
body: <p>Okay this is weird. This is the first time I try out printing of the page and I hope I can keep it simple. The thing is it works, it actually does (why wouldn't it). BUT, the problem is when I hit the "print" button the first time since page loaded it previews almost blank page. Some content (borders) load but the main text does not.
  The code was simple  but I assumed that it would be better to place the function in document ready of jQuery script. So the whole script looks like this:</p>
  
  <pre><code>$(document).ready(function(){
  $(".prijava").click(function(){
      $("#forma").slideToggle("fast");
  });
  $(".stampaj").click(function(){
      window.print();
  });});
  </code></pre>
  
  <p>Aaand here are the pictures too. First one shows how it looks like on the FIRST click, and second one on second click. If I refresh the page it works but if I close it and start it again it fails for the first time again.</p>
  
  <p><a href="https://imgur.com/a/FRXrg" rel="nofollow noreferrer">http://imgur.com/a/FRXrg</a></p>
  
  <p>(I hope links are ok here)</p>
  
  <p>Thank you :)</p>