Home / Companies / Sentry / Blog / Post Details
Content Deep Dive

How to hack your Google Lighthouse scores in 2024

Blog post from Sentry

Post Details
Company
Date Published
Author
Salma Alam-Naylor
Word Count
4,048
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

Google Lighthouse is a tool used to assess web page performance, prioritizing usability over raw speed. Its performance score is calculated using a weighted combination of core web vital metrics and other speed-related metrics. The main goal of this article is to explore how to "hack" Google Lighthouse scores in favor, while also acknowledging that these hacks may not be suitable for real-world use cases. To improve FCP scores, displaying a minimal viable LCP element on load can trick Lighthouse into thinking the page is useful quicker than it actually is. However, this approach should not be used to compromise user experience. Similarly, deferring loading content that will cause layout shifts until the Lighthouse test has likely finished can improve CLS scores. The Speed Index score and TBT score cannot be "hacked" as they are based on real page load times. Ultimately, Google Lighthouse is just a rough guide for debugging performance, and its limitations should not be overlooked.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.