Reputation: 151998
If an amp-list takes more than, X seconds to fetch the content from the endpoint, how can I display a spinner in the meantime? The spinner should not be displayed unnecessarily if X is lower than 0.5 seconds.
Upvotes: 1
Views: 823
Reputation: 151998
By default, the AMP runtime does display a loading indicator, consisting of three moving dots, even if the response takes as little as 0.1 seconds to load. The loading indicator can be customized via the amp-active
class, as shown in the Custom Loading Indicators sample:
Upvotes: 1
Reputation: 1409
You can use the Placeholder and Fallback to modify it.
Or by adding the noloading
Attribute you can hide the loading indicator.
Upvotes: 0