Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed Sep 30, 2015
1 parent dc474e8 commit 2c9c1e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/amp-html-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ In concrete terms this means that:
"datePublished": "2015-02-05T08:00:00+08:00"
}
</script>
<script custom-element="amp-carousel" src="https://cdn.ampproject.org/v1/amp-carousel-0.1.js" async></script>
<script custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js" async></script>
<script src="https://cdn.ampproject.org/v0.js" async></script>
<style>body {opacity: 0}</style><noscript><style>body {opacity: 1}</style></noscript>
</head>
Expand Down Expand Up @@ -238,9 +238,9 @@ Authors are free to include all custom fonts via a `@font-face` CSS instruction

The AMP runtime is a piece of JavaScript that runs inside every AMP document. It provides implementations for AMP custom elements, manages resource loading and prioritization and optionally includes a runtime validator for AMP HTML for use during development.

The AMP runtime is loaded via the mandatory `<script src="https://cdn.ampproject.org/v1.js"></script>` tag in the AMP document head.
The AMP runtime is loaded via the mandatory `<script src="https://cdn.ampproject.org/v0.js"></script>` tag in the AMP document head.

Development mode is triggered by including the attribute "development" in the script tag: `<script src="https://cdn.ampproject.org/v1.js" development></script>`
Development mode is triggered by including the attribute "development" in the script tag: `<script src="https://cdn.ampproject.org/v0.js" development></script>`


## Resources
Expand Down Expand Up @@ -319,7 +319,7 @@ Extended components are components that do not necessarily ship with the AMP run
Extended components are loaded by including a script tag in the head of the document like this

```html
<script custom-element="amp-carousel" src="https://cdn.ampproject.org/v1/amp-carousel-0.1.js" async></script>
<script custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js" async></script>
```

The script tag MUST have an async attribute and MUST have an `element` attribute referencing the name of the element.
Expand Down

0 comments on commit 2c9c1e9

Please sign in to comment.