I'm using classic javascript window.print() function that is bound to a button to print a page. When I use it the first time after the page loads, it loads the background and the CSS but doesn't load the text for some reason.
When I close the Print Preview (not reloading the page) and click the button again, it loads the missing text completely. This only happens on Chrome, while in Firefox it loads the text on first try without any problems.
I've tried using setTimeout, and window.on('load'...) functions, but didnt help. I'm using a separate CSS file for page printing. What can be the cause of this problem?