[Webkit-unassigned] [Bug 167415] Avoid evicting link preload resources when parsing is done.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 29 23:59:28 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=167415
--- Comment #26 from Yoav Weiss <yoav at yoav.ws> ---
(In reply to comment #25)
> The handling of preloads is a bit complex and it would be good if we could
> simplify it.
> Can we try to align preloads with other loaded resources?
> Here are some thoughts below.
>
> Maybe m_preloads could store CachedResourceHandle.
That might be possible IIUC. Seems orthogonal to this particular issue though.
>
> AFAIUI, body link preloads have a loader so they will not be cancelled when
> the parsing is done. Maybe we should have a way for header link preloads to
> behave the same.
>
> When we would clean m_preloads at the end of parsing, only the speculative
> preloads without any other attached loader would actually be cancelled.
So, the end goal of this patch is to enable another patch:
* Add warnings for unused preloads - https://bugs.webkit.org/show_bug.cgi?id=165670
That foal requires us to distinguish unused link preloads for used ones. So even if we find a way to declare header preloads as referenced, we'd need another (very similar) mechanism to then say "this is a referenced link preload".
In Blink I used the similar `m_preloadResult != PreloadNotReferenced` mechanism to do that, and excluded link preloads from setting the result to referenced.
I'm happy to discuss alternative designs, but thought said end goal is relevant for the discussion.
One other relevant point: I'm planning to add preloadScanner support for linkPreload, after which we will have speculative link preloads as well.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170130/9e171a71/attachment.html>
More information about the webkit-unassigned
mailing list