2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Add loading="lazy" in images

Backport of #30199 after adapting it for v4-dev.
This commit is contained in:
XhmikosR
2020-05-10 08:13:02 +03:00
committed by Mark Otto
parent a1d8ed4413
commit 345d68cdbb
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ gem install bootstrap -v {{ site.current_ruby_version }}
<img class="img-fluid mt-3 mx-auto" srcset="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/bootstrap-icons.png,
{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/bootstrap-icons@2x.png 2x"
src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/bootstrap-icons.png"
alt="Bootstrap Icons" width="966" height="600">
alt="Bootstrap Icons" width="966" height="600" loading="lazy">
</div>
</div>
@@ -118,7 +118,7 @@ gem install bootstrap -v {{ site.current_ruby_version }}
<img class="img-fluid mt-3 mx-auto" srcset="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/bootstrap-themes.png,
{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/bootstrap-themes@2x.png 2x"
src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/bootstrap-themes.png"
alt="Bootstrap Themes" width="700" height="500">
alt="Bootstrap Themes" width="700" height="500" loading="lazy">
</div>
</div>
</div>