【发布时间】:2020-11-29 15:18:21
【问题描述】:
我不知道为什么我的 LCP 会是一个 p 标签,我也不知道我会做些什么来减小它的大小。有时它会达到 2.6 秒并给出黄色评级(而不是绿色)。
这是 p 标签。所有这些类都是引导类。
<p className="text-center mb-md-5 mt-0 mb-5">{aboutText}</p>
这是变量aboutText
const aboutText = `Suddenly Magazine highlights the uniqueness of Saskatchewan, and its sudden rise in popularity and growth mentioned in publications such as USA Today and the New York Times.
Advertorials and Articles focus on its rare & particular tourism, its passionate sports, its character, and the prosperous opportunity for businesses and artists influenced by a Saskatchewan setting.
It is centred in Saskatoon, but contributors range from Lac La Ronge in the North, to provincial boundaries east and west, to the Outlaw Caves near the US border.`
【问题讨论】:
-
我只是意识到我认为这取决于我第一次有内容的绘画的时间。 LCP 似乎总是比 FCP 高 0.6
-
对于那些在这个问题上磕磕绊绊想知道如何提高他们的灯塔分数的人,我发布了一个 answer on this topic on another question 并提供了许多一般提示。
标签: reactjs gatsby pagespeed lighthouse pagespeed-insights