TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building the most inaccessible site with a perfect Lighthouse score (2019)

331 pointsby im_darioalmost 5 years ago

17 comments

luckylionalmost 5 years ago
Imho, the problem with Lighthouse (and Pagespeed before it) isn&#x27;t that they&#x27;re not perfect, it&#x27;s that they assign scores&#x2F;grades.<p>When Google assigns a score to something, people understand it to mean highest score = best and start optimizing for the grade Google gives them, not for performance and user experience, which the grade is supposed to represent.<p>It would be more fruitful to list the issues and their severity but not add overall scores, because scores change the objective from fixing the problems to getting high scores. They occasionally also have the have bugs where they will punish something with a worse score that is actually an improvement in the real world, discouraging people from doing the right thing (&quot;I want my site to load faster, but Google is buggy and will rank me down if I do&quot;).
评论 #23441852 未加载
评论 #23441936 未加载
评论 #23441770 未加载
评论 #23444567 未加载
评论 #23447109 未加载
评论 #23442046 未加载
评论 #23441941 未加载
评论 #23444768 未加载
评论 #23442853 未加载
评论 #23445258 未加载
评论 #23444904 未加载
joan_kodealmost 5 years ago
Wow, CSS system color keywords seem like a massive privacy leak. I just tested setting the property:<p><pre><code> background: Background; </code></pre> on an element, and then changing my Windows desktop background. The element immediately changes color to match my desktop. Then if I call getComputedStyle on the element, I get my desktop background color in javascript. This is in Firefox private mode, and apparently every website can read all my system colors. Why in the world is this enabled by default?<p><a href="https:&#x2F;&#x2F;www.w3.org&#x2F;wiki&#x2F;CSS&#x2F;Properties&#x2F;color&#x2F;keywords#System_Colors" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;wiki&#x2F;CSS&#x2F;Properties&#x2F;color&#x2F;keywords#System...</a>
评论 #23443845 未加载
评论 #23443859 未加载
评论 #23443382 未加载
评论 #23450627 未加载
评论 #23444219 未加载
ChrisMarshallNYalmost 5 years ago
One of the &quot;philosophers&#x27; stone&quot; goals of the software industry is to completely replace human testing with automated testing.<p>Basically, I think automated testing is a very good thing, and we should <i>definitely</i> try to do as much of it as possible.<p>So we can clear the way for more useful and meaningful human testing.<p>I&#x27;ve always thought that the engineers in QC should be just as skilled and qualified as the ones building the product.<p>Part of what they should do, is design and build really cool automated tests, but I think that they should also be figuring out how to &quot;monkey-test&quot; the products, and get true users (this is 1000% required for usability and accessibility testing) banging on the product.<p>&quot;True users&quot; != anyone even <i>remotely</i> connected with the product development or testing, beyond a contract agreement.<p>But I&#x27;m kind of a curmudgeonly guy, and my opinions are not always welcomed.<p>I do write about why I prefer using test harnesses, as opposed to [automated] unit tests, here: <a href="https:&#x2F;&#x2F;medium.com&#x2F;chrismarshallny&#x2F;testing-harness-vs-unit-498766c499aa" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;chrismarshallny&#x2F;testing-harness-vs-unit-4...</a>
评论 #23444387 未加载
评论 #23442077 未加载
评论 #23442282 未加载
userbinatoralmost 5 years ago
Having seen many other instances where chasing numbers has lead to a worse outcome, I think &quot;metrics driven development&quot; is an abomination that must be abolished. Unfortunately, management seems to really like the idea of turning everything into a number and increasing it at all costs --- I have fought against such things, and when I pointed out all the negatives associated with it, they would often agree; but then dismiss the thought completely with a response that essentially means &quot;but it makes the numbers look better.&quot;<p>As the saying goes: &quot;Not everything that counts can be counted, and not everything that can be counted, counts.&quot;
评论 #23442517 未加载
评论 #23443151 未加载
choxialmost 5 years ago
Cool, but this article would have been more useful with some practical examples of things Lighthouse doesn&#x27;t catch. If the point is &quot;this automated metric isn&#x27;t perfect&quot;, no automated metric is but how bad is it exactly?<p>I still don&#x27;t have a sense for how bad Lighthouse is because I&#x27;ve never disabled all keyboard events, disabled all mouse events, or changed the high contrast stylings. The article almost makes the opposite point to me -- how bad can Lighthouse be if the only loopholes are things that would pretty obviously have accessibility issues?<p>The only useful examples I could see were the ones at the bottom of the article, which show up in Lighthouse next to the score.
评论 #23443497 未加载
评论 #23443300 未加载
runawaybottlealmost 5 years ago
This reminds me of a time when a team member was adamant about code coverage metrics. It felt like an intense amount of busy work that really didn’t improve our codebase or ensure thoughtful tests that actually, you know, caught stuff.<p>It was just some weird metric we were chasing that involved making sure we go through each function and superficially test calls, regardless of the fact that some of the stuff we were testing gave us no confidence on the actual internals. I will not even mention that code coverage became this <i>number</i> that he&#x2F;she believed was this standard, even though no attempts were made to build the codebase via TDD from the get to (making chasing the code coverage metric after the fact laughable). What could I say? The person appealed to the authority of the code coverage metric.<p>But hey, we got that code coverage percentage up :)
评论 #23448934 未加载
bhrgunathaalmost 5 years ago
An Interesting and entertaining article.<p>The most interesting part to me (as someone with vision problems) was the WebAIM link [1]. The biggest problem I have is with the almost total blind adoption of low contrast (so often too low for me to even read) and sure enough the section about low contrast [2] says:<p>&quot;found on 86.3% of home pages. _This was the most commonly-detected accessibility issue_.<p>My basic question then is why do so many designers and websites choose to break the WCAG guidelines?<p>[1] <a href="https:&#x2F;&#x2F;webaim.org&#x2F;projects&#x2F;million" rel="nofollow">https:&#x2F;&#x2F;webaim.org&#x2F;projects&#x2F;million</a><p>[2] <a href="https:&#x2F;&#x2F;webaim.org&#x2F;projects&#x2F;million&#x2F;#contrast" rel="nofollow">https:&#x2F;&#x2F;webaim.org&#x2F;projects&#x2F;million&#x2F;#contrast</a>
评论 #23445997 未加载
评论 #23444934 未加载
kopitealmost 5 years ago
First, let me start by saying that this is a good article and sheds light on one of the challenges of accessibility adoption.<p>All of tools like lighthouse, axe-core etc. run a subset of tests that gives a false sense of security about accessibility. Similarly, tools like Accessibility Insights for Web has a fast-pass option, which does the same thing where it runs a subset of tests to catch the most common issues on a website.<p>But it does not and cannot(at this moment) catch all the issues that require semantic analysis of a website, like checking that the alt text on an image has meaningful text. For tests like those, a human is needed to perform a comprehensive assessment, something like Accessibility insights for web offers as an Assessment option.<p>In my opinion, all of the tools are doing one thing good and that is raise awareness about the problems that users with a disability face daily, when trying to use a website. They are making accessibility a must. Tools still needs more work and I feel confident that it will continue to improve. It all kind of comes down to how much time a development team puts in to make their website completely accessible, which ideally every team should budget and plan for.
评论 #23442426 未加载
sixhobbitsalmost 5 years ago
&gt; Oh, man. This is so evil. My LinkedIn inbox will be filled with job offerings by companies like Facebook and Uber.<p>I really enjoyed this part
ancardaalmost 5 years ago
So this is what people mean by &quot;following the letter of the law instead of the spirit of the law&quot;?
chrismorganalmost 5 years ago
Another technique to mess up keyboard users: don’t use the document scroll area, but make your own (and don’t focus it or anything in JavaScript). Thus the user will have to press Tab or click in the area before keyboard navigation keys will work. So for best results put a large number of focusable elements before the scrollable pane, so that the keyboard user must press Tab a large and unpredictable number of times before it works.<p>It’ll be something like this:<p><pre><code> &lt;body&gt; &lt;div tabindex=0&gt;&lt;&#x2F;div&gt; &lt;div tabindex=0&gt;&lt;&#x2F;div&gt; &lt;div tabindex=0&gt;&lt;&#x2F;div&gt; &lt;div style=&quot;position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto&quot;&gt; … &lt;&#x2F;div&gt; &lt;&#x2F;body&gt; </code></pre> You could probably mess with other tabindexes (randomly jump through the document with Tab!) without Lighthouse baulking.<p>I was going to suggest adding `pointer-events: none` so that the user can’t just click to focus it, but that was already done!<p>(I mentioned focusing your scroll area element as something you need to do if you roll your own rather than using the document scroll area; but that’s not all you need to do. You also need to monitor blur events and change any .blur() calls, so as to avoid the document element ever retaining focus. It inherently depends on JavaScript, and is very fiddly to get fully right—I’m actually not sure if <i>anyone</i> gets it <i>fully</i> right; the interactions of focus and selection are nuanced and inconsistent, and it’s extremely easy to mess up accessibility software; I haven’t finished my research on the topic. I strongly recommend against the technique on web pages; web apps can <i>occasionally</i> warrant it.)
dccoolgaialmost 5 years ago
I just read an article a couple days ago about how even YouTube widgets and stuff have huge a11y problems. I think it&#x27;s time to admit Google is terrible at accessibility. All their devrels talk like it&#x27;s important and have all these beautiful demos but whenever you look behind the curtain at their products it&#x27;s terrible.
评论 #23446013 未加载
irrationalalmost 5 years ago
Stop giving people ideas. I can almost guarantee that there is someone out there getting ideas of things to add to their site from this post ;-)
calibasalmost 5 years ago
Google invents new metric, web shifts to accommodate new Google metric, people learn how to abuse metric, Google invents new metric...
ornxkaalmost 5 years ago
I think this actually outlines the standard design process for most major web sites
staycoolboyalmost 5 years ago
This is hilarious. It&#x27;s like if McSweeny&#x27;s staff were programmers.
SiempreViernesalmost 5 years ago
So disapointed this isn&#x27;t about building a tall building at a super remote site on antarctica or something like that :(
评论 #23441732 未加载