Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
[formatting] consistency with dimension quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Jul 24, 2020
1 parent 9373aa7 commit 3ecf32a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/site/content/en/blog/iframe-lazy-loading/index.md
Expand Up @@ -25,8 +25,8 @@ supported in Chrome and Chromium-based browsers.
```html/1
<iframe src="https://example.com"
loading="lazy"
width=600
height=400></iframe>
width="600"
height="400"></iframe>
```

Native lazy-loading of iframes defers offscreen iframes from being loaded
Expand Down Expand Up @@ -256,6 +256,8 @@ currently offers
<iframe frameborder="0"
class="lazyload"
allowfullscreen=""
width="600"
height="400"
data-src="//www.youtube.com/embed/ZfV-aYdU4uE">
</iframe>
```
Expand All @@ -269,6 +271,8 @@ lazysizes when it's not available:
class="lazyload"
loading="lazy"
allowfullscreen=""
width="600"
height="400"
data-src="//www.youtube.com/embed/ZfV-aYdU4uE">
</iframe>
Expand Down

0 comments on commit 3ecf32a

Please sign in to comment.