Speculatively load referenced files while "real" parsing is blocked on a <script src=> load
Categories
(Core :: DOM: HTML Parser, enhancement, P1)
Tracking
()
People
(Reporter: andershol, Assigned: mrbkap, NeedInfo)
References
()
Details
(4 keywords)
Attachments
(3 files, 8 obsolete files)
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
mrbkap
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mrbkap
:
review+
mrbkap
:
superreview+
|
Details | Diff | Splinter Review |
Comment 1•18 years ago
|
||
Comment 2•17 years ago
|
||
Comment 3•17 years ago
|
||
Comment 4•17 years ago
|
||
Comment 5•17 years ago
|
||
Comment 6•17 years ago
|
||
Comment 8•17 years ago
|
||
Comment 9•17 years ago
|
||
Comment 11•16 years ago
|
||
Comment 12•16 years ago
|
||
Comment 13•16 years ago
|
||
Comment 14•16 years ago
|
||
Comment 15•16 years ago
|
||
Comment 16•16 years ago
|
||
Updated•16 years ago
|
Updated•16 years ago
|
Comment 17•16 years ago
|
||
Comment 19•16 years ago
|
||
Comment 20•16 years ago
|
||
Assignee | ||
Comment 21•16 years ago
|
||
Assignee | ||
Comment 22•16 years ago
|
||
Updated•16 years ago
|
Assignee | ||
Comment 24•16 years ago
|
||
Comment 25•16 years ago
|
||
Comment 26•16 years ago
|
||
Assignee | ||
Comment 27•16 years ago
|
||
Assignee | ||
Comment 28•16 years ago
|
||
Assignee | ||
Comment 29•16 years ago
|
||
Assignee | ||
Comment 30•16 years ago
|
||
Assignee | ||
Comment 31•16 years ago
|
||
Assignee | ||
Comment 32•16 years ago
|
||
Assignee | ||
Comment 33•16 years ago
|
||
Updated•16 years ago
|
Assignee | ||
Comment 34•16 years ago
|
||
Assignee | ||
Comment 35•16 years ago
|
||
Comment 36•16 years ago
|
||
Comment 37•16 years ago
|
||
Updated•16 years ago
|
Comment 38•16 years ago
|
||
Assignee | ||
Comment 40•16 years ago
|
||
Assignee | ||
Comment 41•16 years ago
|
||
Updated•16 years ago
|
Comment 42•16 years ago
|
||
Comment 43•16 years ago
|
||
Assignee | ||
Comment 44•16 years ago
|
||
Assignee | ||
Comment 45•16 years ago
|
||
Comment 46•16 years ago
|
||
Assignee | ||
Comment 47•16 years ago
|
||
Assignee | ||
Comment 48•16 years ago
|
||
Assignee | ||
Comment 49•16 years ago
|
||
Assignee | ||
Comment 50•16 years ago
|
||
Assignee | ||
Comment 51•16 years ago
|
||
Comment 52•16 years ago
|
||
Comment 54•16 years ago
|
||
Comment 55•16 years ago
|
||
Comment 56•16 years ago
|
||
Updated•16 years ago
|
Comment 57•16 years ago
|
||
Comment 58•16 years ago
|
||
Comment 59•4 years ago
|
||
This change ended up having negative privacy implications when combined with its effect on JS-generated meta CSPs. In order to support this use case, I'll be filing a spec with PrivacyCG to make it so that sites can opt-out of speculative loading with a no-speculate attribute. I'll update this issue with a link to the GitHub discussion later
Updated•4 years ago
|
Comment 60•4 years ago
|
||
JS-generated meta CSPs.
Which don't work at all if script is disabled, right?
Disabling this specific sort of speculation is a huge performance hit on a typical web page, especially on anything resembling a mobile (i.e. high-latency) connection. I suggest doing some testing of the resulting behavior before suggesting that it be added, even as an opt-in.
Comment 61•4 years ago
|
||
And I should note that mrbkap has not been working on Gecko for years, now, so it's not clear to me what effect, if any, the needinfo on him will do. Especially since it did not come with a clear description of what information was needed. What are you trying to achieve with comments in this bug, exactly?
Comment 62•4 years ago
|
||
I just meant to ping everyone on this issue, since it's from so many years ago. I don't really need info.
Disabling this specific sort of speculation is a huge performance hit on a typical web page
Correct, which is why this would be optional and should only be enabled for 'modern' (e.g. explicitly marked up with defer/async where applicable) web pages instead of 'typical' web pages.
I suggest doing some testing of the resulting behavior before suggesting that it be added, even as an opt-in.
I'll be sure to post an update in this thread w/perf benchmarks & compat tests once I get to that point 👍
Comment 63•4 years ago
|
||
Please don't post anything in closed bugs except "here's a link to the not-closed bug tracking whatever we still need to track".
And please file a new bug describing the behavior changes you want. This is not the right place to discuss them.
That said, your assumptions about whether users care about performance of "non-modern" websites are wrong, and penalizing all such websites because some sites want to write meta CSP from JS (which is generally a bad idea to start with) is likely a non-starter. You might be able to convince people to add a "go real slow" switch; making it the default is a much tougher sell.
Assignee | ||
Comment 64•4 years ago
|
||
(Trying to clear the needinfo)
Description
•