AMP

AMP Boilerplate Code

AMP HTML ドキュメント の head タグには、次の定型句を含める必要があります。 検証は現在正規表現で行われているので、 急な変更をできるだけ最小限に抑えることが重要です。 現在許可されている急な変更は次のとおりです。 (1) style タグの開始直後と終了直前に任意の空白を挿入します。 (2) 以下のスニペットのスペースを任意の空白に置き換えます。

<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>