Google Light­house is a tool that tests pro­gres­sive web apps for user-friend­li­ness and per­for­mance. Besides web apps, users can also assess con­ven­tion­al websites for per­for­mance and op­ti­miza­tion potential with the tool. Unlike many other analytics tools, Google’s new tool lets you adapt and filter test con­di­tions for the most realistic eval­u­a­tion of actual website per­for­mance pa­ra­me­ters.

In­tro­duc­tion to Google Light­house

Pro­gres­sive web apps (PWAs) are websites that look, work and are operated like mobile apps. Web apps offer dynamic content and are now very popular. Examples of PWAs include websites like booking.com and Twitter, which share a sur­pris­ing number of features with native apps in their browser versions.

To enable PWAs to make users feel like they are operating native apps, they have to fulfill specific per­for­mance pa­ra­me­ters and prop­er­ties. You can use the Google Light­house test to measure and optimize these per­for­mance aspects. Light­house is an open-source software and is generally used as a Chrome extension. It is very simple to use: After in­stalling the Light­house Chrome extension, you can open any website and test its per­for­mance by clicking the extension icon. Eval­u­a­tion is provided in detailed tables of mea­sure­ments and graphics.

Google Light­house analyzes and compares the following areas: PWA, per­for­mance, ac­ces­si­bil­i­ty, best practices, and SEO. You can access detailed in­for­ma­tion on each of the areas analyzed. After analysis, the tool provides ad­di­tion­al tips to improve the site.

Light­house is extremely flexible and offers you many valuable analytics and com­par­a­tive insights, which you can use to optimize your website. Thanks to the variable con­fig­u­ra­tion, you can map any con­ceiv­able scenario for analysis. The tool is suitable for beginners, advanced users, and pro­fes­sion­als. Pros and de­vel­op­ers generally don’t use the Light­house Chrome extension. Instead, they use the command line, which can be con­fig­ured in far greater detail. However, you have to install node.js on the webserver in advance in order to use the command line.

What exactly does Google Light­house do?

Light­house evaluates a given website in five different cat­e­gories.

Pro­gres­sive web apps

Google Light­house’s core function, which has been available since release, is analyzing pro­gres­sive web apps. The software analyzes whether the website works as intended. In detail, Light­house checks for correct dis­play­ing of all elements and dynamic content, instances of service worker reg­is­tra­tion on the website, and avail­abil­i­ty of offline func­tion­al­i­ty. A service worker is a script that is run to make website in­for­ma­tion available offline, too. Generally, this is done by setting up a proxy interface between the website and users.

Per­for­mance

When it comes to per­for­mance, Light­house analyzes the speed of the website or web app and checks whether the elements loaded are correctly displayed to the user. Analytics consists of the following six sub-cat­e­gories:

  • First Con­tent­ful Paint – indicates how long it takes until the first image or first text is displayed in full on the website.
  • First Mean­ing­ful Paint – indicates when the main contents of the website are fully visible.
  • Speed Index – shows how quickly the website contents are shown.
  • Time To In­ter­ac­tive – indicates when the page is fully loaded and ready for in­ter­ac­tion.
  • First CPU Idle – indicates the time when the main thread activity on the website is low enough to process user entries for the first time.
  • Estimated Input Latency – estimates how many mil­lisec­onds the page or web app takes to react to user entries during the five-second window with the highest CPU uti­liza­tion when loading the page. If latency is more than 50 mil­lisec­onds, users often perceive the page or app as slow.

Besides analyzing the above factors, Light­house also suggests im­prove­ments. The sug­ges­tions provide a wide range of op­ti­miza­tion options to reduce loading times. For example, this includes com­press­ing images, JavaScript or breaking up resources that could block website rendering. Other per­for­mance analytics functions also include rec­om­men­da­tions across the following points:

  • Deliver image files in formats with small file sizes and correct di­men­sions.
  • Provide com­pressed texts and JavaScript.
  • Enable cache op­ti­miza­tion for improved display of static content.
  • Avoid redirects and load the most important requests in advance to speed up server response times.
  • Deliver animated content in compact, modern video formats where possible.
  • Minimize the website’s data volume.
  • Add markups and tags ap­pro­pri­ate­ly to improve the results of mea­sure­ments and tracking.

Ac­ces­si­bil­i­ty

Google Light­house also assesses how suitable the website or pro­gres­sive web app is for phys­i­cal­ly disabled people. Specif­i­cal­ly, Ac­ces­si­bil­i­ty tests whether important elements like buttons or links are described suf­fi­cient­ly or images and graphics have a voice-over function that outputs the contents audibly for the blind.

Best Practices

In Best Practices, Light­house primarily analyzes the security aspects of the website or PWA. In this test, the tool assesses whether en­cryp­tion tech­nolo­gies like TLS are used, website resources are from secure sources, and that JavaScript libraries are con­sid­ered safe. Light­house also analyzes whether connected databases are secure and points out insecure commands and any older APIs being used.

SEO

Google Light­house performs various tests to analyze how well search engines can process the app or website. However, these tests in Light­house are very limited. Light­house outputs the analysis results on a scale from 0 to 100 points. If the site or app does not get full marks, op­ti­miza­tion is essential and the website operator will need to act.

Light­house focuses on search engine op­ti­miza­tion for mobile devices. The feature analyzes and tests the website or pro­gres­sive web app to determine whether it is mobile-friendly and whether tags and metadata are optimized.

How do you use Google Light­house?

Users have been able to directly install the Google Light­house Chrome extension for several years now. In general, Light­house can be used in many different ways. However, they all have one thing in common: Google’s Chrome browser must be installed on the computer where Light­house is to be used.

The easiest way to use Light­house is via Google DevTools. Light­house is available in the audit tab. You can also use the afore­men­tioned Chrome plug-in. The advantage of the Light­house Chrome option is that the latest version of the tool is always available. Users can also operate Light­house via the command line. This has the advantage that you can also use the Build tools. You can use a Node module for this purpose.

What in­for­ma­tion does Light­house provide?

Google Light­house provides key per­for­mance in­di­ca­tors for the user ex­pe­ri­ence like “First Con­tent­ful Paint” or “First Input Delay”, and it does so in a very simple way. In order to analyze scenarios as precisely as possible, the tool simulates real con­di­tions, es­pe­cial­ly on mobile devices, by adapting CPU per­for­mance and other factors that apply to users in their everyday lives.

After the analysis, Light­house assigns scores between 0 and 100, with 100 being the best result. You can use these scores as a guide to help you eliminate potential errors and optimize per­for­mance. When analyzing the website’s load speed, it breaks the scores down into three cat­e­gories. Scores from 0 to 49 (red) are rated slow, 50 to 89 (orange) are rated average and from 90 to 100 (green) are rated fast.

Based on these results, you can make the necessary ad­just­ments and op­ti­miza­tions to speed up the website’s load times. The analysis results are output for all mea­sur­able events including per­for­mance for PWAs, ac­ces­si­bil­i­ty, best practices, and SEO.

The Light­house tests give operators of websites or pro­gres­sive web apps a lot of in­for­ma­tion and analytics that enable them to optimize their offerings. The color scale and rec­om­mend­ed tips enable even beginners to take the first steps towards op­ti­miz­ing their sites them­selves.

Go to Main Menu