Add loading="lazy" for template thumbnails
[MAILPOET-2378]
This commit is contained in:
committed by
Jack Kitterhing
parent
2783933bda
commit
1fe2249408
@@ -105,7 +105,7 @@ class TemplateBox extends React.Component {
|
||||
if (typeof thumbnail === 'string' && thumbnail.length > 0) {
|
||||
preview = (
|
||||
<a href="javascript:;" onClick={this.onPreview}>
|
||||
<img src={thumbnail} alt={MailPoet.I18n.t('templatePreview')} />
|
||||
<img src={thumbnail} alt={MailPoet.I18n.t('templatePreview')} loading="lazy" />
|
||||
<div className="mailpoet_overlay">
|
||||
<p className="mailpoet_more_details">{MailPoet.I18n.t('zoom')}</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user