diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-27 02:06:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-27 02:07:55 +0200 |
commit | 5bb2e6597a038a9a8dc3de8df10ad92756487e3b (patch) | |
tree | ab8d6d2c8689cc743823a76ebd19750ef6e6d9ca /Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h | |
parent | ed5c807c99df9590c7883502d8e152fad6849e9b (diff) | |
download | serenity-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.h | 3 |
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 }; }; |