Browse Source

LibWeb: Add IDL enum for lazy loading attribute

Jamie Mansfield 1 year ago
parent
commit
c484625631
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl

+ 7 - 0
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"
+};