Bug 20931 - DNS prefetch when the user mouses over a hyperlink
Summary: DNS prefetch when the user mouses over a hyperlink
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Collin Jackson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 00:18 PDT by Collin Jackson
Modified: 2008-09-20 23:29 PDT (History)
4 users (show)

See Also:


Attachments
Proposed patch (1.34 KB, patch)
2008-09-19 00:37 PDT, Collin Jackson
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Collin Jackson 2008-09-19 00:18:24 PDT
Currently we're calling prefetchDNS on links in the page during load time only. However, many DNS entries have a short TTL and the response may expire while the user is viewing the page. If the user then tries to navigate by clicking on a hyperlink, the browser will have to do a new DNS lookup and must wait for the response before it can load the URL. To reduce perceived latency due to expired DNS entries, we can re-prefetch the hostnames of links when the user mouses over them. (Web sites can control this behavior via the DNS prefetch control mechanism.)
Comment 1 Collin Jackson 2008-09-19 00:37:22 PDT
Created attachment 23558 [details]
Proposed patch
Comment 2 Sam Weinig 2008-09-19 19:24:13 PDT
Comment on attachment 23558 [details]
Proposed patch

Cool.  r=me
Comment 3 Collin Jackson 2008-09-20 23:29:50 PDT
Landed in r36730