From 6a18656323215f4aaf4ae4e73a5991026385c439 Mon Sep 17 00:00:00 2001 From: Marco D'Agostini Date: Thu, 24 Sep 2020 20:03:12 -0500 Subject: [PATCH] Lazy loading: fix typo and added color highliting to html code --- Lazy loading images in HTML.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lazy loading images in HTML.md b/Lazy loading images in HTML.md index e7517fc..663192f 100644 --- a/Lazy loading images in HTML.md +++ b/Lazy loading images in HTML.md @@ -1,8 +1,10 @@ # Lazy loading images in HTML -To implement [[Lazy Loading]] to an `` tag, add the attrbitue `loading=lazy` +To implement [[Lazy Loading]] to an `` tag, add the attribute `loading=lazy` - +```html + +``` This will load the image when scrolling is near the viewport, using the [Intersection Observer API](https://developers.google.com/web/updates/2016/04/intersectionobserver)