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

Issue 2751973005: Link prefetch fetches deferred until onload

Created:
3 years, 9 months ago by Yoav Weiss
Modified:
3 years, 9 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, blink-reviews-frames_chromium.org, Nate Chapin, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Link prefetch fetches deferred until onload Currently link prefetched resources are competing on bandwidth with the current page's resources. This CL makes sure that such resources are deferred until the window's onload event, in order to prevent such contention. BUG=651160

Patch Set 1 #

Patch Set 2 : Fixed post onload addition and crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/prefetch/prefetch_added_after_onload.html View 1 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/prefetch/prefetch_deferred_after_onload.html View 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp View 1 4 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 22 (12 generated)
Yoav Weiss
Hey Mike and Charlie, This implements deferring of prefetch resources until the window's onload event, ...
3 years, 9 months ago (2017-03-16 16:46:05 UTC) #7
Charlie Harrison
I am a little scared of this change. I wonder if we need to do ...
3 years, 9 months ago (2017-03-16 16:52:25 UTC) #8
kinuko
+kouhei so that this is on his radar too. Throttling prefetches in renderer until DCL ...
3 years, 9 months ago (2017-03-17 05:01:20 UTC) #10
kinuko
On 2017/03/17 05:01:20, kinuko wrote: > +kouhei so that this is on his radar too. ...
3 years, 9 months ago (2017-03-17 05:03:54 UTC) #11
kouhei (in TOK)
On 2017/03/17 05:03:54, kinuko wrote: > On 2017/03/17 05:01:20, kinuko wrote: > > +kouhei so ...
3 years, 9 months ago (2017-03-17 05:13:51 UTC) #12
Yoav Weiss
On 2017/03/16 16:52:25, Charlie Harrison-slow til 3-20 wrote: > I am a little scared of ...
3 years, 9 months ago (2017-03-17 09:28:52 UTC) #13
Yoav Weiss
On 2017/03/17 05:03:54, kinuko wrote: > On 2017/03/17 05:01:20, kinuko wrote: > > +kouhei so ...
3 years, 9 months ago (2017-03-17 09:30:58 UTC) #14
Charlie Harrison
Sorry for being unclear. I am mainly concerned about performance regressions for pages which use ...
3 years, 9 months ago (2017-03-17 09:53:50 UTC) #17
Mike West
On 2017/03/16 at 16:46:05, yoav wrote: > Mike - are you familiar with the mixed ...
3 years, 9 months ago (2017-03-17 12:30:20 UTC) #20
Mike West
3 years, 9 months ago (2017-03-17 12:30:55 UTC) #21
On 2017/03/17 at 12:30:20, Mike West (Slow.) wrote:
> On 2017/03/16 at 16:46:05, yoav wrote:
> > Mike - are you familiar with the mixed content tests? How should they be
changed to support the possibility (not obligation) of these resources being
deferred?
> 
> Those tests are probably using WPTServe's stash mechanism to store the fact
that a request was or wasn't made. If we're changing the timing of the requests
until after `onload`, we're probably breaking the test's expectation that the
things it's testing have all finished. :/

(That's not a reason not to make this change; I'll defer to folks who know
things about performance for that question. If this is a good idea, we'll update
the tests. *shrug*)

Powered by Google App Engine
This is Rietveld 408576698