This makes sure the entire printed sheet is rendered before the browser attempts to print it, solving all manner of errors