Index: Source/core/dom/ScriptElement.cpp |
diff --git a/Source/core/dom/ScriptElement.cpp b/Source/core/dom/ScriptElement.cpp |
index 5345e2e4110eb0c246473972b9a34b25a5800895..ac2bfb74d51b8068bbb06b344b4bd7367f3b02e7 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) { |