Advanced45 minperformancelighthousedevtoolsmeasurement

Measuring Website Performance

Use Lighthouse and Chrome DevTools Network to establish a repeatable performance baseline before making optimisation decisions.

Learning Objectives

By the end of this lesson, you'll be able to:

  • run Lighthouse
  • use the Network panel
  • sort requests
  • identify large resources
  • explain lab and field data
  • record a repeatable baseline

Why This Matters:

Use Lighthouse and Chrome DevTools Network to establish a repeatable performance baseline before making optimisation decisions.

Before You Start:

You should be familiar with:

Chrome DevTools

Chrome DevTools is included with Google Chrome. No additional software is required.

On macOS, open it with Command + Option + I. On Windows or Linux, use Ctrl + Shift + I. You can also right-click the page and choose Inspect.

DevTools is one of the most important tools a frontend developer can learn because it lets you inspect what the browser actually received and did.

Lighthouse

Lighthouse is built into Chrome DevTools. It is an automated auditing tool, so treat its recommendations as diagnostic evidence rather than a to-do list.

To run your first audit:

  1. Open your website in Chrome.
  2. Open DevTools.
  3. Select Lighthouse.
  4. Choose Navigation if prompted for the audit mode.
  5. Select Performance.
  6. Select the device mode required for the exercise.
  7. Run the analysis.
  8. Wait for the report.
  9. Record the resulting measurements.
  10. Read the diagnostics before making changes.

Screenshot placeholder: Add devtools-lighthouse-annotated.webp from the current Chrome interface. Annotate the Performance checkbox, mobile/desktop choice, and Analyse button. Keep the screenshot readable rather than crowded.

Lab data and field data

Lab data is measured under controlled conditions. It is useful for debugging, repeat testing, and comparing changes.

Field data is collected from real visitors. It is useful for understanding actual devices, networks, locations, and user experiences.

They answer different questions. Lab data helps you reproduce a problem. Field data helps you understand whether real visitors are experiencing it.

Network panel

The Network panel shows the resources requested by a page.

To find the largest files:

  1. Open DevTools.
  2. Select Network.
  3. Reload the page.
  4. Wait until loading settles.
  5. Find the Size column.
  6. Sort by size.
  7. Identify the five largest resources.
  8. Record their filename, type, transferred size, and load time.

Screenshot placeholder: Add devtools-network-annotated.webp from the current Network panel sorted by Size. Add numbered callouts to resource name, type, size, and waterfall.

Performance baseline worksheet

Record the same information every time you test:

MeasurementResult
Lighthouse Performance
LCP
INP if available
CLS
Total transferred
Number of requests
Image transfer total
JavaScript transfer total
CSS transfer total

Then identify three things worth investigating. Do not change them yet.

Check Your Understanding

Before moving forward, can you answer these?

  1. 1. Why should Lighthouse recommendations be investigated rather than blindly followed?
  2. 2. What is the difference between lab data and field data?
  3. 3. What does the Network panel help you find?
Check Your Answers
  1. Because automated tools provide signals. Developers still need to understand context, user impact, effort, and risk.
  2. Lab data is controlled and repeatable. Field data reflects real users and real conditions.
  3. It helps identify requested resources, transferred sizes, timing, and the loading waterfall.

How confident are you with this concept?

Still confused | Getting there | Got it | Could explain it to a friend

Guided Practice

Establish a baseline for one website.

Step 1 - Run Lighthouse

Record the Performance score, LCP, INP if shown, and CLS.

Step 2 - Inspect Network requests

Reload the page with the Network panel open and sort by Size.

Step 3 - Record findings

Fill in the baseline worksheet and list three issues worth investigating.

Independent Practice

Run the same measurement process on a page you built earlier.

Your Task:

Run the same measurement process on a page you built earlier.

Requirements:
  • use the same browser and device setting for each test
  • record Lighthouse and Network data
  • identify three possible investigation targets
  • avoid making changes during measurement

Success Criteria:

CriteriaYou've succeeded if...
your baseline can be repeated laterCompleted clearly and correctly in your solution.
large resources are identified from evidenceCompleted clearly and correctly in your solution.
your notes separate measurement from optimisationCompleted clearly and correctly in your solution.

Before you continue

  • I can open DevTools.
  • I can run Lighthouse.
  • I can inspect Network requests.
  • I can find the largest resources.
  • I understand lab versus field data.
  • I have recorded a baseline.

Extension activity

Test the same page twice with the same settings. Compare the results and note which numbers changed slightly. This helps you understand normal measurement variation.

Closure

Key Takeaways:

  • Performance optimisation begins with evidence.
  • A baseline lets you say: we changed this, and this measurement improved.
  • That is considerably more useful than: it seems quicker on my laptop.

Learning Objectives Review:

Look back at what you set out to learn. Can you now:

  • run Lighthouse Check!
  • use the Network panel Got it!
  • sort requests Can explain it!
  • identify large resources Could teach this!
  • explain lab and field data Check!
  • record a repeatable baseline Got it!

If you can confidently answer "yes" to most of these, you're ready to move on!

Think & Reflect:

Pause and reflect

  • Which idea from this lesson now feels practical rather than abstract?
  • What would you build or test next to make this stick?

Looking Ahead:

  • Performance optimisation begins with evidence.
  • A baseline lets you say: we changed this, and this measurement improved.
  • That is considerably more useful than: it seems quicker on my laptop.

Recommended Next Steps

Continue Learning

Ready to move forward? Continue with the next tutorial in this series:

Optimising Images and Media

Related Topics

Explore these related tutorials to expand your knowledge:

Additional Resources

Deepen your understanding with these helpful resources:

Progress tracking is disabled. Enable it in to track your completed tutorials.