If I use the lazy module, the pages don't validate.
Through attribute: loading="lazy"
I found an easy way to make the two modules compatible.
Turn on AMP and lazy .
In file amp-image-wrapper.html.twig Replace:
{#
/**
* @file
* Theme override of an image.
*
* Available variables:
* - attributes: HTML attributes for the img tag.
* - style_name: (optional) The name of the image style applied.
*
* @see template_preprocess_amp_components_image()
*/
#}
<amp-img{{ attributes }}></amp-img>
On .removeAttribute('loading')
{#
/**
* @file
* Theme override of an image.
*
* Available variables:
* - attributes: HTML attributes for the img tag.
* - style_name: (optional) The name of the image style applied.
*
* @see template_preprocess_amp_components_image()
*/
#}
<amp-img{{ attributes.removeAttribute('loading') }}></amp-img>
Needs review
3.5
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.