Chrome does not load preview completely on first try

I am using the classic javascript window.print () function that is bound to a button to print the page. When I use it for the first time after loading the page, it loads the background and CSS, but for some reason it doesn't load the text.

When I close the preview (without reloading the page) and click the button again, it loads the missing text completely. This only happens in Chrome, and in Firefox it loads the text on first try with no problem.

I tried using the setTimeout and window.on ('load' ...) functions but it didn't help. I am using a separate CSS file to print the page. What could be causing this problem?

+3


source to share


2 answers


There was the same problem. (don't print on first try of Chrome browser)

Resolved it by removing



@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300italic,600);

      

from print.css and take a different font for printing. In the meantime, there is no need to know about it. ”

+3


source


"This only happens in Chrome, and in Firefox it loads the text on the first try without any problem."



Your Chrome browser might have some issues. Try reinstalling your browser. It can solve your problem ...

-1


source







All Articles