Index: Source/core/html/parser/HTMLResourcePreloader.cpp |
diff --git a/Source/core/html/parser/HTMLResourcePreloader.cpp b/Source/core/html/parser/HTMLResourcePreloader.cpp |
index 3f1ee72eab01460a69638136a0c6c97b2c5eaa87..470d57d74ecb360ad717c5ac05d4d8f8738eda2c 100644 |
--- a/Source/core/html/parser/HTMLResourcePreloader.cpp |
+++ b/Source/core/html/parser/HTMLResourcePreloader.cpp |
@@ -88,6 +88,7 @@ void HTMLResourcePreloader::takeAndPreload(PreloadRequestStream& r) |
void HTMLResourcePreloader::preload(PassOwnPtr<PreloadRequest> preload) |
{ |
FetchRequest request = preload->resourceRequest(m_document); |
+ request.setDefer(preload->defer()); |
blink::Platform::current()->histogramCustomCounts("WebCore.PreloadDelayMs", static_cast<int>(1000 * (monotonicallyIncreasingTime() - preload->discoveryTime())), 0, 2000, 20); |
m_document->fetcher()->preload(preload->resourceType(), request, preload->charset()); |
} |