Zach’s ugly mug (his face) Zach Leat­herman

Eleventy Leaderboards v2 via speedlify’s AvatarSpeedlify

August 30, 2020

Wow—this entire thing has been a journey. The idea for the Eleventy Leaderboards was originally borne out of some lighthearted fun poking at the AMP Carousel in Google Search results.

And now we have a fully fledged independent, self-hosted performance dashboard, monitoring solution. Let’s have a look at the final result, ranking the Lighthouse and Axe scores of the nearly 400 web sites in the Built With Eleventy showcase. Every site has historical results complete with a data visualization chart of that data over time.

Follow speedlify’s Avatarspeedlify on Twitter or check out speedlify.dev.

What’s New

  • It’s using Speedlify! That means full historical Lighthouse results and full Axe scans (some Axe violations don’t show in Lighthouse).
  • You can add <speedlify-score> to your web site to show your latest Eleventy Leaderboard rank and score! Here’s a live example of the leaderboard entry for zachleat.com:
    The Eleventy Leaderboards also provide the <speedlify-score> markup you need to integrate the component on your site. Just copy and paste: Example of how to copy speedlify-score markup on the Eleventy Leaderboards Add or remove the score, weight, rank, rank-change, and requests attributes to your needs.
  • Eleventy Author pages now show screenshots and Speedlify scores from the Leaderboard. e.g. the zachleat’s Avatarzachleat Eleventy Author page. A quick shout out to smthdotuk’s AvatarSam Smith, who at time of writing had perfect scores on every one of the six sites listed on their Eleventy Author page.
  • As a bonus feature to Speedlify, we now show a warning on the results when redirects are impacting site performance. If someone forgot a trailing slash on their URL or a www., I’ll usually fix those manually but sometimes they are legitimate parts of the experience (e.g. a redirect from / to /en/ for internationalization).

“The Algorithm” and Tiebreaker Changes

In the current version of the Eleventy Leaderboards (via Speedlify), ranking order is determined as follows:

  1. Sort by largest sum of all four Lighthouse categories
    • In contrast, previous versions were limited to Performance and Accessibility scores only.
  2. If equal, sort by fewest Axe violations
  3. If equal, sort by lowest ratio of Speed Index to Page Weight. If Speed Index is equal the larger site wins. If Page Weight is equal the lower Speed Index wins.
    • In contrast, previous versions used lowest Speed Index as a final tiebreaker (smaller sites usually won here) and highest number of Axe passes (larger sites usually won here).

View the code for the ranking algorithm in performance-leaderboard.

The Journey

Those interested in the history of the thing might want to read about a few of the steps along the way:

Zach Leatherman is a builder for the web at Font Awesome and the creator of Build Awesome (née Eleventy/11ty), an award-winning open source website generator. He measures website performance with speedlify and at one point became too fixated on web fonts. He has given 86 talks in nine different countries at events like Beyond Tellerrand, Smashing Conference, Jamstack Conf, CSSConf, and The White House. Learn more about Zach »