summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-27 02:06:37 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-27 02:07:55 +0200
commit5bb2e6597a038a9a8dc3de8df10ad92756487e3b (patch)
treeab8d6d2c8689cc743823a76ebd19750ef6e6d9ca /Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
parented5c807c99df9590c7883502d8e152fad6849e9b (diff)
downloadserenity-5bb2e6597a038a9a8dc3de8df10ad92756487e3b.zip
LibWeb: Preload resources hinted by <link rel="preload">
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h3
1 files changed, 3 insertions, 0 deletions
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<Resource> m_preload_resource;
+
CSSLoader m_css_loader;
unsigned m_relationship { 0 };
};