Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: Source/core/html/parser/HTMLResourcePreloader.cpp

Issue 514893002: Lower priority of async scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved async script priority to low Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..25b2d4d8616b8936e42e22768474cb7544b2da88 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.setExecAsync(preload->execAsync());
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());
}

Powered by Google App Engine
This is Rietveld 408576698