summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-11-16 15:15:05 -0300
committerGitHub <noreply@github.com>2020-11-16 10:15:05 -0800
commita8858eb93ee666d669c272ec2ba1ade89e81177c (patch)
treeb5d87da877a377b8be304ecfb044953770208c6f
parent3e5e029ef8c480d73e847fde546551c9416c948e (diff)
downloadNim-a8858eb93ee666d669c272ec2ba1ade89e81177c.tar.gz
htmlgen: Add lazy loading (#15986)
-rw-r--r--lib/pure/htmlgen.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim
index ba50a4a6e..acec05832 100644
--- a/lib/pure/htmlgen.nim
+++ b/lib/pure/htmlgen.nim
@@ -333,12 +333,12 @@ macro i*(e: varargs[untyped]): untyped =
 
 macro iframe*(e: varargs[untyped]): untyped =
   ## Generates the HTML ``iframe`` element.
-  result = xmlCheckedTag(e, "iframe", "src srcdoc name sandbox width height" &
+  result = xmlCheckedTag(e, "iframe", "src srcdoc name sandbox width height loading" &
     commonAttr)
 
 macro img*(e: varargs[untyped]): untyped =
   ## Generates the HTML ``img`` element.
-  result = xmlCheckedTag(e, "img", "crossorigin usemap ismap height width" &
+  result = xmlCheckedTag(e, "img", "crossorigin usemap ismap height width loading" &
     commonAttr, "src alt", true)
 
 macro input*(e: varargs[untyped]): untyped =