ampproject / amp-react-prototype

A scratch pad to experiment with React rendered AMP Components
Apache License 2.0
36 stars 9 forks source link

Manual loading control #50

Open dvoytenko opened 4 years ago

dvoytenko commented 4 years ago

AmpContext allows control of rendering/loading via context properties. By default, loading can be enabled and applications can exercise a more fine-grained control using AmpContext.Provider. Additionally, we could standardize on a property for manual control as well to override AmpContext. E.g. loading-control=auto|manual|always or similar.