Closed
Description
<amp-script>
requires a content-type of application/javascript
when src
is same-origin, which is documented in https://amp.dev/documentation/components/amp-script/#security-features. Should this be extended to allow text/javascript
as well?
https://amp.dev serve scripts with text/javascript
, and this HTTP Archive post suggests text/javascript
is used widely.
Edit: Also, the HTML spec recommends use of text/javascript
for script resources.