Skip to content

Commit de9b0e8

Browse files
authored
Revert ampjs.org to cdn.ampproject.org (#6808)
1 parent feb3c9f commit de9b0e8

File tree

1,172 files changed

+2666
-2665
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,172 files changed

+2666
-2665
lines changed

boilerplate/templates/files/ads.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width">
66
<style amp4ads-boilerplate>body{visibility:hidden}</style>
7-
<script async src="https://ampjs.org/amp4ads-v0.js"></script>
7+
<script async src="https://cdn.ampproject.org/amp4ads-v0.js"></script>
88
{{> render-delaying/amp-experiment-preload.html }}
99
{{> render-delaying/amp-dynamic-css-classes-preload.html }}
1010
{{> fonts/google-preconnect.html }}

boilerplate/templates/files/email.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html ⚡4email data-css-strict>
33
<head>
44
<meta charset="utf-8">
5-
<script async src="https://ampjs.org/v0.js"></script>
5+
<script async src="https://cdn.ampproject.org/v0.js"></script>
66
<style amp4email-boilerplate>body{visibility:hidden}</style>
77
<style amp-custom>
88
h1 {

boilerplate/templates/files/serviceworkerJs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
importScripts('https://ampjs.org/sw/amp-sw.js');
1+
importScripts('https://cdn.ampproject.org/sw/amp-sw.js');
22

33
AMP_SW.init({
44
\{{#serviceworker.assetCaching}}

boilerplate/templates/files/stories.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width">
66
<meta name="description" content="This is the AMP Boilerplate.">
7-
<link rel="preload" as="script" href="https://ampjs.org/v0.js">
8-
<link rel="preload" as="script" href="https://ampjs.org/v0/amp-story-1.0.js">
7+
<link rel="preload" as="script" href="https://cdn.ampproject.org/v0.js">
8+
<link rel="preload" as="script" href="https://cdn.ampproject.org/v0/amp-story-1.0.js">
99
{{> render-delaying/amp-experiment-preload.html }}
1010
{{> render-delaying/amp-dynamic-css-classes-preload.html }}
1111
{{> media/hero-image-preload.html }}
1212
{{> media/hero-video-preload.html }}
1313
{{> fonts/google-preconnect.html }}
14-
<script async src="https://ampjs.org/v0.js"></script>
15-
<script async custom-element="amp-story" src="https://ampjs.org/v0/amp-story-1.0.js"></script>
14+
<script async src="https://cdn.ampproject.org/v0.js"></script>
15+
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
1616
{{> render-delaying/amp-experiment-import.html }}
1717
{{> render-delaying/amp-dynamic-css-classes-import.html }}
1818
<!-- Import other AMP Extensions here -->

boilerplate/templates/files/websites.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width">
66
<meta name="description" content="This is the AMP Boilerplate.">
7-
<link rel="preload" as="script" href="https://ampjs.org/v0.js">
7+
<link rel="preload" as="script" href="https://cdn.ampproject.org/v0.js">
88
{{> render-delaying/amp-experiment-preload.html }}
99
{{> render-delaying/amp-dynamic-css-classes-preload.html }}
1010
{{> media/hero-image-preload.html }}
1111
{{> media/hero-video-preload.html }}
1212
{{> fonts/google-preconnect.html }}
13-
<script async src="https://ampjs.org/v0.js"></script>
13+
<script async src="https://cdn.ampproject.org/v0.js"></script>
1414
{{> render-delaying/amp-experiment-import.html }}
1515
{{> render-delaying/amp-dynamic-css-classes-import.html }}
1616
<!-- Import other AMP Extensions here -->

boilerplate/templates/index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<link rel="preload" href="/static/fonts/noto-sans-v7-latin-700.woff2" as="font" crossorigin>
99
<link rel="preload" href="/static/fonts/poppins-v5-latin-700.woff2" as="font" crossorigin>
1010
<link rel="preload" href="/static/fonts/fira-mono-v7-latin-500.woff2" as="font" crossorigin>
11-
<script async src="https://ampjs.org/v0.js"></script>
12-
<script async custom-element="amp-bind" src="https://ampjs.org/v0/amp-bind-0.1.js"></script>
13-
<script async custom-element="amp-list" src="https://ampjs.org/v0/amp-list-0.1.js"></script>
14-
<script async custom-element="amp-analytics" src="https://ampjs.org/v0/amp-analytics-0.1.js"></script>
15-
<script async custom-element="amp-install-serviceworker" src="https://ampjs.org/v0/amp-install-serviceworker-0.1.js"></script>
16-
<script async custom-template="amp-mustache" src="https://ampjs.org/v0/amp-mustache-0.2.js"></script>
17-
<script async custom-element="amp-position-observer" src="https://ampjs.org/v0/amp-position-observer-0.1.js"></script>
18-
<script async custom-element="amp-animation" src="https://ampjs.org/v0/amp-animation-0.1.js"></script>
11+
<script async src="https://cdn.ampproject.org/v0.js"></script>
12+
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script>
13+
<script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script>
14+
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
15+
<script async custom-element="amp-install-serviceworker" src="https://cdn.ampproject.org/v0/amp-install-serviceworker-0.1.js"></script>
16+
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"></script>
17+
<script async custom-element="amp-position-observer" src="https://cdn.ampproject.org/v0/amp-position-observer-0.1.js"></script>
18+
<script async custom-element="amp-animation" src="https://cdn.ampproject.org/v0/amp-animation-0.1.js"></script>
1919
<style amp-custom>
2020
{{{ highlightTheme }}}
2121
{{scss 'components/atoms/headline.scss' }}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#googleAnalytics.selected}}
2-
<script async custom-element="amp-analytics" src="https://ampjs.org/v0/amp-analytics-0.1.js"></script>
2+
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
33
\{{/googleAnalytics.selected}}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#heroVideo.selected}}
2-
<script async custom-element="amp-video" src="https://ampjs.org/v0/amp-video-0.1.js"></script>
2+
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
33
\{{/heroVideo.selected}}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#serviceworker.selected}}
2-
<script async custom-element="amp-install-serviceworker" src="https://ampjs.org/v0/amp-install-serviceworker-0.1.js"></script>
2+
<script async custom-element="amp-install-serviceworker" src="https://cdn.ampproject.org/v0/amp-install-serviceworker-0.1.js"></script>
33
\{{/serviceworker.selected}}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#ampDynamicCss.selected}}
2-
<script async custom-element="amp-dynamic-css-classes" src="https://ampjs.org/v0/amp-dynamic-css-classes-0.1.js"></script>
2+
<script async custom-element="amp-dynamic-css-classes" src="https://cdn.ampproject.org/v0/amp-dynamic-css-classes-0.1.js"></script>
33
\{{/ampDynamicCss.selected}}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#ampDynamicCss.selected}}
2-
<link rel="preload" as="script" href="https://ampjs.org/v0/amp-dynamic-css-classes-0.1.js">
2+
<link rel="preload" as="script" href="https://cdn.ampproject.org/v0/amp-dynamic-css-classes-0.1.js">
33
\{{/ampDynamicCss.selected}}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#ampExperiment.selected}}
2-
<script async custom-element="amp-experiment" src="https://ampjs.org/v0/amp-experiment-0.1.js"></script>
2+
<script async custom-element="amp-experiment" src="https://cdn.ampproject.org/v0/amp-experiment-0.1.js"></script>
33
\{{/ampExperiment.selected}}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\{{#ampExperiment.selected}}
2-
<link rel="preload" as="script" href="https://ampjs.org/v0/amp-experiment-0.1.js">
2+
<link rel="preload" as="script" href="https://cdn.ampproject.org/v0/amp-experiment-0.1.js">
33
\{{/ampExperiment.selected}}

contributing/samples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This works for elements in the `<head>` as well:
100100
```html
101101
<head>
102102
<!-- Import the amp-youtube component -->
103-
<script async custom-element="amp-youtube" src="https://ampjs.org/v0/amp-youtube-0.1.js"></script>
103+
<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>
104104
...
105105
</head>
106106
```

examples/api/cache.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ examples.get('/query', (request, response) => {
6161
<head>
6262
<meta charset="utf-8">
6363
<meta name="viewport" content="width=device-width">
64-
<script async src="https://ampjs.org/v0.js"></script>
64+
<script async src="https://cdn.ampproject.org/v0.js"></script>
6565
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
6666
${STYLE}
6767
<link rel="canonical" href="${request.originalUrl}">
@@ -87,7 +87,7 @@ examples.get('/invalid-amp', (request, response) => {
8787
<head>
8888
<meta charset="utf-8">
8989
<meta name="viewport" content="width=device-width">
90-
<script async src="https://ampjs.org/v0.js"></script>
90+
<script async src="https://cdn.ampproject.org/v0.js"></script>
9191
<title>Invalid AMP</title>
9292
${STYLE}
9393
</head>

examples/source/0.introduction/AMPHTML_Ads_Hello_World.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<meta charset="utf-8">
2929
<title> Hello World</title>
3030
<!-- AMPHTML ads require a custom version of the AMP runtime.-->
31-
<script async src="https://ampjs.org/amp4ads-v0.js"></script>
31+
<script async src="https://cdn.ampproject.org/amp4ads-v0.js"></script>
3232
<meta name="viewport" content="width=device-width">
3333
<!--
3434
The AMPHTML ads boilerplate which is shorter than the regular AMP boilerplate. -->

examples/source/0.introduction/Hello_World.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<meta charset="utf-8">
2525
<title> Hello World</title>
2626
<!-- The AMP runtime must be loaded as the second child of the `<head>` tag.-->
27-
<script async src="https://ampjs.org/v0.js"></script>
27+
<script async src="https://cdn.ampproject.org/v0.js"></script>
2828
<!--
2929
AMP HTML files require a canonical link pointing to the regular HTML. If no HTML version exists, it should point to itself.
3030
-->

examples/source/0.introduction/Hello_World_Email.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
<!-- The charset definition must be the first child of the `<head>` tag. -->
2424
<meta charset="utf-8">
2525
<!-- The AMP runtime.-->
26-
<script async src="https://ampjs.org/v0.js"></script>
26+
<script async src="https://cdn.ampproject.org/v0.js"></script>
2727
<!-- The AMP for Email boilerplate. -->
2828
<style amp4email-boilerplate>body{visibility:hidden}</style>
2929
<!-- Import AMP components in the header, for example the `amp-carousel` component. -->
30-
<script async custom-element="amp-carousel" src="https://ampjs.org/v0/amp-carousel-0.1.js"></script>
30+
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
3131
<!--
3232
### Allowed CSS properties and selectors
3333

examples/source/0.introduction/Stories_in_AMP.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<html amp lang="en">
99
<head>
1010
<meta charset="utf-8">
11-
<script async src="https://ampjs.org/v0.js"></script>
11+
<script async src="https://cdn.ampproject.org/v0.js"></script>
1212
<!-- ## Setup -->
1313
<!-- AMP Stories are written using AMPHTML and they use their own AMP extension: `amp-story`. The first step is to import the `amp-story` in the header. -->
14-
<script async custom-element="amp-story" src="https://ampjs.org/v0/amp-story-1.0.js"></script>
14+
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
1515
<!-- AMP Stories can make use of other AMP extensions such as `amp-video`. However, AMP Stories support only a subset of the available AMP extensions. You can find a full list of the supported extensions [here](/content/amp-dev/documentation/components/reference/amp-story.md#children-of-amp-story-grid-layer). -->
16-
<script async custom-element="amp-video" src="https://ampjs.org/v0/amp-video-0.1.js"></script>
16+
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
1717
<title>Stories in AMP - Hello World</title>
1818
<meta name="viewport" content="width=device-width">
1919
<link rel="canonical" href="<% canonical %>">

examples/source/1.components/amp-3d-gltf.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
<meta charset="utf-8">
1818
<link rel="canonical" href="<% canonical %>">
1919
<meta name="viewport" content="width=device-width">
20-
<script async src="https://ampjs.org/v0.js"></script>
20+
<script async src="https://cdn.ampproject.org/v0.js"></script>
2121
<title>amp-3d-gltf</title>
2222
<!-- ## Setup -->
2323
<!--
2424
Import the `amp-3d-gltf` component in the header.
2525
-->
26-
<script async custom-element="amp-3d-gltf" src="https://ampjs.org/v0/amp-3d-gltf-0.1.js"></script>
26+
<script async custom-element="amp-3d-gltf" src="https://cdn.ampproject.org/v0/amp-3d-gltf-0.1.js"></script>
2727
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
2828
</head>
2929
<body>

examples/source/1.components/amp-access-laterpay.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
<title>amp-access-laterpay</title>
1717
<link rel="canonical" href="<% canonical %>">
1818
<meta name="viewport" content="width=device-width">
19-
<script async src="https://ampjs.org/v0.js"></script>
19+
<script async src="https://cdn.ampproject.org/v0.js"></script>
2020

2121
<!-- ## Setup -->
2222
<!-- Import the `amp-access` component in the header. -->
23-
<script async custom-element="amp-access" src="https://ampjs.org/v0/amp-access-0.1.js"></script>
23+
<script async custom-element="amp-access" src="https://cdn.ampproject.org/v0/amp-access-0.1.js"></script>
2424
<!-- `amp-access` requires `amp-analytics` to be imported as well. -->
25-
<script async custom-element="amp-analytics" src="https://ampjs.org/v0/amp-analytics-0.1.js"></script>
25+
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
2626
<!-- And of course the `amp-access-laterpay` component. -->
27-
<script async custom-element="amp-access-laterpay" src="https://ampjs.org/v0/amp-access-laterpay-0.2.js"></script>
27+
<script async custom-element="amp-access-laterpay" src="https://cdn.ampproject.org/v0/amp-access-laterpay-0.2.js"></script>
2828

2929
<!-- Add the configuration which specifies the vendor, and vendor specific configuration for `amp-access` -->
3030
<script id="amp-access" type="application/json">

examples/source/1.components/amp-access.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
<head>
1313
<meta charset="utf-8">
1414
<title>amp-access</title>
15-
<script async src="https://ampjs.org/v0.js"></script>
15+
<script async src="https://cdn.ampproject.org/v0.js"></script>
1616

1717
<!-- ## Setup -->
1818
<!-- Import the `amp-access` component in the header. -->
19-
<script async custom-element="amp-access" src="https://ampjs.org/v0/amp-access-0.1.js"></script>
19+
<script async custom-element="amp-access" src="https://cdn.ampproject.org/v0/amp-access-0.1.js"></script>
2020
<!-- `amp-access` requires `amp-analytics` to be imported as well. -->
21-
<script async custom-element="amp-analytics" src="https://ampjs.org/v0/amp-analytics-0.1.js"></script>
21+
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
2222

2323
<!-- Optionally, use the [`amp-mustache`](/content/amp-dev/documentation/components/reference/amp-mustache-v0.2.md) component to show text with values replaced from the authorization response -->
24-
<script async custom-template="amp-mustache" src="https://ampjs.org/v0/amp-mustache-0.2.js"></script>
24+
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"></script>
2525

2626
<!-- Add the configuration for the `authorization` and the `login` endpoints. We provide two login endpoints, one for sign-in and one for sign-out. It is also possible to create a fallback response that will be used if the authorization fails with the `authorizationFallbackResponse` attribute.
2727

examples/source/1.components/amp-accordion.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<head>
1919
<meta charset="utf-8">
2020
<title>amp-accordion</title>
21-
<script async src="https://ampjs.org/v0.js"></script>
21+
<script async src="https://cdn.ampproject.org/v0.js"></script>
2222
<!-- ## Setup -->
2323
<!--
2424
Import the `amp-accordion` component.
2525
-->
26-
<script async custom-element="amp-accordion" src="https://ampjs.org/v0/amp-accordion-0.1.js"></script>
26+
<script async custom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script>
2727
<link rel="canonical" href="<% canonical %>">
2828
<meta name="viewport" content="width=device-width">
2929
<style amp-boilerplate> body { -webkit-animation: -amp-start 8s steps(1, end) 0s 1 normal both; -moz-animation: -amp-start 8s steps(1, end) 0s 1 normal both; -ms-animation: -amp-start 8s steps(1, end) 0s 1 normal both; animation: -amp-start 8s steps(1, end) 0s 1 normal both } @-webkit-keyframes -amp-start { from { visibility: hidden } to { visibility: visible } } @-moz-keyframes -amp-start { from { visibility: hidden } to { visibility: visible } } @-ms-keyframes -amp-start { from { visibility: hidden } to { visibility: visible } } @-o-keyframes -amp-start { from { visibility: hidden } to { visibility: visible } } @keyframes -amp-start { from { visibility: hidden } to { visibility: visible } } </style><noscript> <style amp-boilerplate> body { -webkit-animation: none; -moz-animation: none; -ms-animation: none; animation: none } </style> </noscript>

examples/source/1.components/amp-ad.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<head>
1616
<meta charset="utf-8">
1717
<title>amp-ad</title>
18-
<script async src="https://ampjs.org/v0.js"></script>
18+
<script async src="https://cdn.ampproject.org/v0.js"></script>
1919
<!-- ## Setup -->
2020
<!-- Import the `amp-ad` component in the header. -->
21-
<script async custom-element="amp-ad" src="https://ampjs.org/v0/amp-ad-0.1.js"></script>
21+
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
2222
<link rel="canonical" href="<% canonical %>">
2323
<meta name="viewport" content="width=device-width">
2424
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>

0 commit comments

Comments
 (0)