WDD 231: Web Frontend Development I

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 loaded, 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. Whereas if content is jumping around or contains lag, it can feel unprofessional.

Performance Metrics

To answer the above questions in a measurable way, web developers use web performance metrics. Here are three core metrics:

There are additional metrics that are important to consider if you want to dig deeper into this field, such as interaction latency, runtime responsiveness, smoothness, total blocking time, and time to first byte. 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 consider both:

The following are some tips to improve the overall user experience and performance.

Lighthouse Tools

Throughout this course and previous courses, you have used the Google Lighthouse tool, that 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 consider performance:

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.
  2. Navigate to the old Church url of: https://lds.org. Why does this URL redirect to a new domain?

    Note the domain name forwarding service changes the URL to https://churchofjesuschrist.org.
    (In addition, your preferred language parameter may be part of the URL's querystring with a name-value pair, e.g., ?lang=es)

  3. How long did the page take 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 a audit on the page by using the Performance tab and clicking the reload button.
    Screenshot of Performance Tab
    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.
    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 have fixed?
  9. Post a comment or respond to a post in Microsoft Teams.
  10. Evaluate your own work for page load using these page performance tools.

Optional Resources