2016-09-28 6 views
-2

AMPプロジェクトページhttps://github.com/ampproject/amphtmlは最小有効なページとしてこれを識別します最小AMP HTMLの例

<!doctype html> 
<html ⚡> 
    <head> 
    <meta charset="utf-8"> 
    <link rel="canonical" href="hello-world.html" > 
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> 
    <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> 
    <script async src="https://cdn.ampproject.org/v0.js"></script> 
    </head> 
    <body>Hello World!</body> 
</html> 

これは多く、特にCSSのように見えます。これは本当に最小ですか?

+0

あなたはその吹き出し記号を取り除くことができるので、そうではありません。 –

答えて

1

はい、これは最も単純なAMPページです。 amp-boilerplateの提供されたCSSは、あなたが変更してはならないもので、Malte Ubiによって瞬間的なページ読み込みの錯覚を作り出すハックとして説明されています。

関連する問題