Set decoding=async on image previews

This commit is contained in:
Pavel Djundik 2017-12-29 12:06:18 +02:00
parent 50d8bf5191
commit f38fa9b98e
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
{{/if}}
<a class="image-link" href="{{link}}" target="_blank">
<img src="{{image}}" alt="Preview of {{link}}">
<img src="{{image}}" decoding="async" alt="">
</a>
<a class="btn open-btn" href="{{link}}" target="_blank">

View File

@ -2,7 +2,7 @@
<div class="toggle-content toggle-type-{{type}}{{#if shown}} show{{/if}}">
{{#equal type "image"}}
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
<img src="{{thumb}}">
<img src="{{thumb}}" decoding="async" alt="">
</a>
{{/equal}}
{{#equal type "audio"}}
@ -20,7 +20,7 @@
{{#equal type "link"}}
{{#if thumb}}
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
<img src="{{thumb}}" class="thumb">
<img src="{{thumb}}" decoding="async" alt="" class="thumb">
</a>
{{/if}}
<a class="toggle-text" href="{{link}}" target="_blank" rel="noopener">