From 5bb2e6597a038a9a8dc3de8df10ad92756487e3b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 27 Sep 2021 02:06:37 +0200 Subject: LibWeb: Preload resources hinted by If a page is nice enough to give us some preload hints, we can tell RequestServer to get started on downloading the resources right away, instead of waiting until discovering them later on during parsing. --- Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h') diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h index 7c0a88fa36..aebd3a38d1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h @@ -32,9 +32,12 @@ private: enum { Alternate = 1 << 0, Stylesheet = 1 << 1, + Preload = 1 << 2, }; }; + RefPtr m_preload_resource; + CSSLoader m_css_loader; unsigned m_relationship { 0 }; }; -- cgit v1.2.3