[Webkit-unassigned] [Bug 102936] New: Lookahead parser should evaluate Link header for rel=prefetch/stylesheet/script
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 21 06:36:10 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=102936
Summary: Lookahead parser should evaluate Link header for
rel=prefetch/stylesheet/script
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: nickshanks at nickshanks.com
Modern best practice is to put the scripts a page uses at the bottom of the document, as long as they do not use APIs like document.write()
Doing so requires that the look-ahead parser scan through an entire document before finding them. As an experiment, my web app now emits this:
HTTP/1.1 200 OK
Link:</style/common.min.css>;rel=stylesheet prefetch, </scripts/common.min.js>;rel=script prefetch
...response body...
however no difference above the statistical variance was noticed in the timing of speculative resource requests.
Anecdotal:
See http://stackoverflow.com/questions/3641581/link-rel-script-usage for comments about rel=script
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list