New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axe - Web Accessibility Testing chrome extension slows down page load time #1839
Comments
We'll take a look to see what might be causing the slowdown. |
@straker Lighthouse provides a good breakdown. I was running a local lighthouse audit against a static site with no javascript: The 2 offending scripts from the extension are However, @AutoSponge mentioned that axe Pro does require some listeners to always be there. Related: #679 |
@scurker can we add this test to our repo? I'd like to start tracking perf benchmarks that impact the user, like this one. I think lighthouse has a cli now. |
@dylanb tldr; Yes We should defer dependencies that aren't needed until the extension is actually opened (e.g. @AutoSponge I haven't figured out a way to get the lighthouse cli to load extensions. |
@scurker I was able to run the check with our extension: lighthouse http://google.com --chrome-flags="--disable-extensions-except=/Users/paulgrenier/Github/attest-browser-extensions/dist/axe/chrome, --load-extension=/Users/paulgrenier/Github/attest-browser-extensions/dist/axe/chrome" --view
|
@AutoSponge Good catch! I had omitted the second flag, looks like we should be able to track performance related things with the following command:
|
Deferring this until after 4.5.0 because it seems like a lot of work to do the lazy loading the way we want. |
@erik-deque can you check the status of this? |
@scurker and I had a conversation about this particular item this week; we've improved the performance but we still have items we'd like to tackle to take it further. |
Extension version 4.18.2 improves performance by only evaluating axe-core in the page when the user presses the button, I am leaving this issue open because we still have some other planned improvements |
@dylanb I'm using v 4.19.0 of extension for Chrome, and it still impacts every Performance audit in Lighthouse:
|
@kospl yes, that is why this ticket is still open, we made some improvements but still have some work to do |
When using the chrome extension it adds up to 400ms+ in page load time
Environment:
Axe Version 4.0.0
Windows 10
Chrome Version 77.0.3865.90 (Official Build) (64-bit)
Expectation: To not have such a significant impact on speed.
Motivation: Deceiving page load times had me confused why pages were loading lightning fast in chrome incognito mode vs regular non-incognito mode, there should be a warning that there is a significant impact to page load time.
I'm also using service workers to create fully progressive web app where I normally get around 200ms page load time.
The text was updated successfully, but these errors were encountered: