Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amp html AMP项目中的LCP(页面速度)-样板AMP标签的LCP更差_Amp Html_Pagespeed - Fatal编程技术网

Amp html AMP项目中的LCP(页面速度)-样板AMP标签的LCP更差

Amp html AMP项目中的LCP(页面速度)-样板AMP标签的LCP更差,amp-html,pagespeed,Amp Html,Pagespeed,我想减少amp网络中的LCP。我意识到这个问题来自style amp样板标签: <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 b

我想减少amp网络中的LCP。我意识到这个问题来自style amp样板标签:

 <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>
body{-webkit动画:-amp start 8s steps(1,end)0s1 normal tweet;-moz动画:-amp start 8s steps(1,end)0s1 normal tweet;-ms动画:-amp start 8s steps(1,end)0s1 normal tweet}@-webkit关键帧-amp start{从{可见性:隐藏}到{可见性:可见}@-moz关键帧-amp start{from{visibility:hidden}到{visibility:visible}ms关键帧-amp start{from{visibility:hidden}到{visibility:visible}o关键帧-amp start{from{visibility:hidden}到{visibility:hidden}到{visibility:visible}body{webkit动画:无;-moz动画:无;-ms动画:无}
我想这个标签让我的网页在资源准备好的时候开始打印,但是页面速度的LCP越来越差

如何编辑此标记以提高页面速度中的LCP


谢谢!

您根本无法编辑样板文件。 即使稍加修改也会完全破坏放大器

不幸的是,您需要完全检查代码

然而,使用CDN可以显著提高LCP“分数”。

使用amp优化器