TranslationChild: Make "interactive" count as readyEnough
Some pages (notably the first DOI.js test case) never get to "complete". I don't know why! But for practically all translators that don't use defer: true, "interactive" is ready enough.
This commit is contained in:
parent
309e56df06
commit
540a174dab
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ class TranslationChild extends JSWindowActorChild {
|
|||
const document = this.document;
|
||||
|
||||
function readyEnough() {
|
||||
return document.readyState === "complete";
|
||||
return document.readyState === "complete" || document.readyState === "interactive";
|
||||
}
|
||||
|
||||
if (readyEnough()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue