Search code snippets, questions, articles...

Disable loading indicator on AMP element

If you want to disable the loading indicator on the AMP element then add noloading attribute to that element.
<amp-img src="path/to/image.jpg"
    noloading
    height="300"
    width="500"
    layout="responsive">
</amp-img>

In the code snippet, we are hiding the default loading indicator for the amp-img AMP element by adding 'noloading' attribute to the AMP image element.

Search Index Data (The code snippet can also be found with below search text)

Hide loader AMP
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet