wait for parse to finish before resolving load promise for xhtml files
Merge branch '59193074-copy-unloaded-file' into testing