mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
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.
This commit is contained in:
parent
ed5c807c99
commit
5bb2e6597a
2 changed files with 12 additions and 0 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue