WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
102936
Lookahead parser should evaluate Link header for rel=prefetch/stylesheet/script
https://bugs.webkit.org/show_bug.cgi?id=102936
Summary
Lookahead parser should evaluate Link header for rel=prefetch/stylesheet/script
Nicholas Shanks
Reported
2012-11-21 06:38:11 PST
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
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug