From c484625631c7f04b7887b9b017e99806e516769c Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Sun, 26 May 2024 18:58:02 +0100 Subject: [PATCH] LibWeb: Add IDL enum for lazy loading attribute --- Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl b/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl index 11c9e5a60e7..960b92c161c 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl +++ b/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl @@ -4,3 +4,10 @@ enum CORSSettingsAttribute { "anonymous", "use-credentials" }; + +// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#lazy-loading-attribute +[MissingValueDefault=eager, InvalidValueDefault=eager] +enum LazyLoadingAttribute { + "lazy", + "eager" +};