mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Add loading="lazy" in images
Backport of #30199 after adapting it for v4-dev.
This commit is contained in:
@@ -98,7 +98,7 @@ Adding images to the `.navbar-brand` will likely always require custom styles or
|
||||
<!-- Just an image -->
|
||||
<nav class="navbar navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg" width="30" height="30" alt="">
|
||||
<img src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg" width="30" height="30" alt="" loading="lazy">
|
||||
</a>
|
||||
</nav>
|
||||
{% endcapture %}
|
||||
@@ -108,7 +108,7 @@ Adding images to the `.navbar-brand` will likely always require custom styles or
|
||||
<!-- Image and text -->
|
||||
<nav class="navbar navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="">
|
||||
<img src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="" loading="lazy">
|
||||
Bootstrap
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user