Lurker News
Back to discussion

Comment by geofft

geofft2 replies#
Agree, but technically if the spec is well-defined browsers can recognize that JS URL as a magic string instead of actually loading that JS, sorta like how browsers don't actually go to w3c.org when they see an HTML 4.01 doctype.

Perhaps the right place is to lobby the WHATWG for an explicit exception in the definition of the script tag to handle these ampproject.org URLs in an API-compatible way.

tyingq1 reply#
If you don't load the js, the amp specific tags don't work. So, for example, no images.
geofft#
I mean that browsers should implement support for the AMP-specific tags directly, without needing to load the JS to do so. If the AMP spec is complete, then this should theoretically be possible.