TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

We increased our Lighthouse score by making our images larger

180 点作者 vlucas将近 4 年前

19 条评论

Someone1234将近 4 年前
When a measure becomes a target, it ceases to be a good measure.<p>Which is to ask: So they improved their Lighthouse score, grats, but did they improve or reduce their user experience? Where&#x27;s the data on <i>that</i>?<p>This is of course caused by Google&#x27;s &quot;good intentions&quot; gone awry. They originally created Lighthouse to help better inform developers, so that developers could create better user experiences.<p>But Google is now [ab]using Lighthouse as a <i>target</i> for Google Search page-position preference. Developers in turn given this situation code towards Lighthouse (even into its bugs&#x2F;quirks) because they <i>need</i> that higher ranking, even if it hurts the UX ultimately.
评论 #27751611 未加载
评论 #27750481 未加载
评论 #27752699 未加载
评论 #27754512 未加载
评论 #27751687 未加载
scottfr将近 4 年前
The LCP metric is particularly brittle. It&#x27;s concerning Google is linking it to search ranking thereby ensuring everyone caters to it.<p>In our case, our hero image (formerly the LCP element Lighthouse picked up) is an animated image illustrating our product. It starts animating very fast for most of our audience and finishes loading in the background as it continues animating.<p>However, the Lighthouse LCP timestamp is not the time which the image starts animating, instead it&#x27;s the time the animated image _completely finishes_ loading. So even though the animation starts almost right away and doesn&#x27;t stutter, our LCP was several seconds or more.<p>We &quot;solved&quot; it by making the animation bounding box size slightly smaller and some text boxes on the page slightly larger so the LCP was tied to the text box loading.
评论 #27750348 未加载
评论 #27754011 未加载
评论 #27753664 未加载
评论 #27753283 未加载
Eric_WVGG将近 4 年前
This is a different thing, but it actually is possible for larger JPEGs to be faster (smaller file size) than smaller JPEGs.<p>Back when 4x &quot;retina&quot; resolution displays first hit the market, someone observed that you could take a 4x sized image, crank up the JPEG compression (from say 80% quality to 40%), and the resulting JPEG artifacts would visually disappear. The file size of larger, compressed images are frequently smaller than that of smaller, less-compressed images. And the render quality of &quot;squishing&quot; a 4x image down to 1x on a lower-resolution display similarly looks fine.<p>The images on the article in question are ironically broken, of course, but anyway I&#x27;ve been sampling images this way for years now. <a href="https:&#x2F;&#x2F;alidark.com&#x2F;responsive-retina-image-mobile&#x2F;" rel="nofollow">https:&#x2F;&#x2F;alidark.com&#x2F;responsive-retina-image-mobile&#x2F;</a>
评论 #27752115 未加载
评论 #27753115 未加载
评论 #27754262 未加载
beeandapenguin将近 4 年前
There seems to be a misconception that the Lighthouse score is linked to the page experience search rank update. Higher Lighthouse scores won&#x27;t give you better SEO. Only better results from field data (albeit only Chrome field data) will impact your search results [1].<p>Lighthouse is only intended to be a guide (name checks out) for developers to identify potential opportunities to improve real-user performance. Core Web Vitals is how Google has decided to align lab and field data in a more unified way. Historically, this has been pretty difficult, particularly with interactivity measurements. For example, Total Blocking Time (TBT) is a lab proxy metric for First Input Delay (FID) — they don&#x27;t measure the same thing. The team at Google has frequently communicated that the only true way to know is from measuring on real users [2].<p>While the metrics aren&#x27;t perfect, they are taking in feedback to adjust how metrics are measured and weighted, such as with the windowed CLS update [3]. I for one have found the tools and browser support for measuring performance to have improved significantly, even in the last few years. Kudos to the Web Perf community, who I&#x27;m sure would appreciate any feedback.<p>[1]: <a href="https:&#x2F;&#x2F;support.google.com&#x2F;webmasters&#x2F;thread&#x2F;104436075&#x2F;core-web-vitals-page-experience-faqs-updated-march-2021" rel="nofollow">https:&#x2F;&#x2F;support.google.com&#x2F;webmasters&#x2F;thread&#x2F;104436075&#x2F;core-...</a><p>[2]: <a href="https:&#x2F;&#x2F;web.dev&#x2F;vitals-tools&#x2F;#crux" rel="nofollow">https:&#x2F;&#x2F;web.dev&#x2F;vitals-tools&#x2F;#crux</a><p>[3]: <a href="https:&#x2F;&#x2F;blog.webpagetest.org&#x2F;posts&#x2F;understanding-the-new-cumulative-layout-shift&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.webpagetest.org&#x2F;posts&#x2F;understanding-the-new-cum...</a>
joshstrange将近 4 年前
KPI&#x27;s&#x2F;Goodhart&#x27;s Law in a nutshell... In theory Lighthouse is a nice resource for finding ways to optimize your site but since it&#x27;s tied to page rank it means we are encouraged&#x2F;incentivized to eschew best practices and to use lighthouse practices instead.
partiallypro将近 4 年前
I&#x27;ve posted here numerous times on how you can make your site worse and increase your score. It&#x27;s frustrating that Google is pushing such a broken set of metrics for SEO. It&#x27;s easy to trick but often in ways that make the user experience worse.
评论 #27753709 未加载
javiercr将近 4 年前
A good question is why Google is using only <i>one tile</i> to measure LCP for sites that have maps taking 50% of the viewport.<p>Is it just a coincidence, or did they make it to avoid ruining LCP metrics for large sites using Google Maps extensively (Airbnb, rent.com, etc.)?
jayd16将近 4 年前
Is this really a bug though? Its a bit silly but in a very real sense they added more fast loading, eye catching content.
banana_giraffe将近 4 年前
It&#x27;s interesting to me that the final &quot;here&#x27;s the new improved layout&quot; screenshot is a 2000px wide screen shot. If you have to have such a large window to not fail cramped just to make some random metric happy, then I think you&#x27;ve failed.<p>The page itself also really seems to fight me moving around the map due to how it manages state and the URL stack. No doubt my browser isn&#x27;t the same as a normal users, but it strikes me they&#x27;re chasing the wrong goals here.
评论 #27753197 未加载
joncp将近 4 年前
The first thing rentpath should do is stop scrolljacking.
tiffanyh将近 4 年前
I wouldn&#x27;t be surprised if this is because it reduced the Cumulative Layout Shift (CLS).<p>Having larger images defined reduces the likelihood you&#x27;ll have layout shifts while the page is painting, which greatly impacts your overall score.<p><a href="https:&#x2F;&#x2F;web.dev&#x2F;vitals&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.dev&#x2F;vitals&#x2F;</a>
评论 #27751267 未加载
评论 #27752278 未加载
评论 #27752655 未加载
评论 #27753391 未加载
addedlovely将近 4 年前
Clicking one marker on the map triggers almost 100 network requests. Seems crazy, why push all the images for all properties when I only need the first, then lazyload the rest when I interact with the slideshow.<p>Not sure why sorting then reloads the data, as it looks to sort the matched results that are already on page.
chrisweekly将近 4 年前
Higher score, not faster site nor improved UX.
评论 #27751443 未加载
somehnacct3757将近 4 年前
LCP is garbage. If you have top navigation and left navigation (think Jira, Gmail, etc) their sum could be your LCP even though none of your actual content has loaded. Good for your LCP score, bad if you want to use it to actually measure performance
jrochkind1将近 4 年前
What, this is improving your &quot;score&quot;, but not actually improving user experience of perceived load time, is it?<p>It&#x27;s just gaming the score?<p>An odd thing to brag about? or am I missing something?
dthedavid将近 4 年前
What alternative approaches did you try?<p>Would loading a placeholder image for the map and transitioning it in when ready help?
评论 #27752851 未加载
评论 #27752291 未加载
adreamingsoul将近 4 年前
What is the point of a lighthouse score?
评论 #27750442 未加载
nightcracker将近 4 年前
Time to include a hidden 10000x10000 white PNG to all your webpages I guess.
thrower123将近 4 年前
This is kafkaesque. &quot;Here is the stupid thing we did to game the stupid metric and make it happy&quot;
评论 #27750102 未加载
评论 #27752317 未加载