when reading a new document, wait for enough content to identify the prolog (or not)