WDD 231: Web Frontend Development I

W05 Learning Activity: UX – Page Performance

Overview

As a web developer, creating beautiful, standards-based pages is just the beginning. To be effective, your site must also perform well and offer a great user experience (UX).

This learning activity introduces the key questions and metrics you should consider as you design your site to optimize for better performance. Focusing on this performance data will equip you to enhance the overall user experience and engagement.

Prepare

When users visit a page, their experience can be broken down into four core questions:

  1. Is it happening?
    • Did the navigation start successfully? Has the server responded?
    • At this stage, users want to know something is happening. They have clicked a link and landed on the page and want to see that it is responding. A delay here can feel like the site is broken.
  2. Is it useful?
    • Has enough content rendered that users can see and engage with the content?
    • Moving beyond simply knowing that the page has started loading, users want to be able to see meaningful content quickly. If they can't, they may get frustrated and leave the page.
  3. Is it usable?
    • Can users interact with the page, or is it still busy or unresponsive?
    • If the page has visually loaded, it might look ready, but if buttons don't work or the page freezes, it's not usable.
  4. Is it delightful?
    • Are interactions smooth and natural and free of lag?
    • This stage is about polish. Smooth animations and responsive interactions make the experience feel high-quality and enjoyable. If content jumps around or lags, the site feels unprofessional.

Performance Metrics

To answer the above questions in a measurable way, web developers use web performance metrics. Google groups three of them, LCP, INP, and CLS, as the Core Web Vitals. Here are four key metrics:

There are additional metrics that are important to consider if you want to dig deeper into this field, such as Total Blocking Time (TBT) and Time to First Byte (TTFB). These metrics may also be useful in seeking to evaluate and improve page performance.

User Perception

In addition to the metrics above, it is important to consider the perception of the user as well. A fast page that feels awkward can still create frustration, and a slightly slower page that feels smooth might result in a better experience. With this in mind, it is important to consider both:

Lighthouse Tools

Throughout this course and previous courses, you have used the Google Lighthouse tool, which is integrated into DevTools. This tool generates reports on performance metrics, as well as accessibility, best practices, and Search Engine Optimization (SEO). You have already been running this tool and it is used in many of the assignment rubrics.

Another comparable tool that is geared towards analyzing the performance of live web pages and providing optimization suggestions is the online PageSpeed Insights application on web.dev.

The following are some of the principles and specific diagnostic methods you have been using throughout this and previous courses to improve performance and the overall user experience:

Activity Instructions

In this activity you will evaluate the performance of the Church's website using the Lighthouse tools.

  1. In your browser, start an incognito window or private browsing session so extensions and cached files do not skew the results.
  2. Go to the Church's former address, https://lds.org.

    Notice that the server redirects you to https://www.churchofjesuschrist.org. Redirects add time before the page starts loading.
    (In addition, your preferred language parameter may be part of the URL's query string with a name-value pair, e.g., ?lang=es)

  3. Estimate how long the page took to render the actionable Sign In button from your end-user perspective.
  4. Open the browser's DevTools on this page to check the performance using metrics.
  5. Run an audit on the page by using the Performance tab and clicking the reload button.
    DevTools toolbar with the Performance tab selected and the Screenshots option checked
    Screenshot of Performance Tab
    Performance panel instructions showing the record button and the reload button, which records the page load
    Screenshot of Performance Audit Reload Button
  6. Use the screenshot timeline to find out how long it took to finally render the Sign In button. You can do this visually.
    Performance timeline with a row of page screenshots and an enlarged preview of the Church home page at about 500 milliseconds
    Screenshot of Timeline Paint
  7. Using the Lighthouse tool, select the Mobile device and turn on the Performance category and then click Analyze page load.
  8. Review the Performance metrics and the diagnostics.
    Is there anything that you might suggest as low-hanging fruit to fix?
  9. Post one finding and your suggested fix in Microsoft Teams.
  10. Evaluate your own work by running the same audits on your own pages.

Optional Resources