Fix preloader issue with srcdoc documents.