Index: Source/core/dom/ScriptElement.cpp |
diff --git a/Source/core/dom/ScriptElement.cpp b/Source/core/dom/ScriptElement.cpp |
index d51656cb5bd06d5d0dc6d815768b96847c6fd932..a9dd2e46f2b14debca37e8c2a95eefb798d5dc60 100644 |
--- a/Source/core/dom/ScriptElement.cpp |
+++ b/Source/core/dom/ScriptElement.cpp |
@@ -219,7 +219,7 @@ bool ScriptElement::prepareScript(const TextPosition& scriptStartPosition, Legac |
m_willBeParserExecuted = true; |
} else if (hasSourceAttribute() && m_parserInserted && !asyncAttributeValue()) |
m_willBeParserExecuted = true; |
- else if (!hasSourceAttribute() && m_parserInserted && !document->haveStylesheetsLoaded()) { |
+ else if (!hasSourceAttribute() && m_parserInserted && !document->haveStylesheetsAndImportsLoaded()) { |
m_willBeParserExecuted = true; |
m_readyToBeParserExecuted = true; |
} else if (hasSourceAttribute() && !asyncAttributeValue() && !m_forceAsync) { |