amp.dev icon indicating copy to clipboard operation
amp.dev copied to clipboard

"Allow only asynchronous scripts" is confusing on How AMP Works page

Open pbakaus opened this issue 9 years ago • 2 comments

As per @chenshay, this title is misleading, as one could think they could add JS to the page that isn't AMP's:

image

@cramforce's proposed title, which I like: All AMP JavaScript is fetched with the async attribute.

pbakaus avatar Feb 24 '17 18:02 pbakaus

my suggestion:

Javascript is only allowed to come from from AMPHTML.....and it is loaded asynchronously

chenshay avatar Feb 24 '17 19:02 chenshay

I don't think this is the right place to focus on what is allowed and is not allowed, as this is really meant to talk about why a particular loading technique is used. The whole point is that is could also work for non-AMP JS.

On Fri, Feb 24, 2017 at 11:42 AM, chenshay [email protected] wrote:

my suggestion:

Javascript is only allowed to come from from AMPHTML.....and it is loaded asynchronously

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ampproject/docs/issues/335#issuecomment-282385763, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFeT0wHq-xC4EgAP5m47uH4v0n_wmR6ks5rfzK6gaJpZM4MLh5H .

cramforce avatar Feb 24 '17 20:02 cramforce