Skip to content

core(a11y): aXe perf: only collect provided resultTypes#4380

Merged
patrickhulce merged 1 commit intomasterfrom
axeresulttypes
Feb 6, 2018
Merged

core(a11y): aXe perf: only collect provided resultTypes#4380
patrickhulce merged 1 commit intomasterfrom
axeresulttypes

Conversation

@paulirish
Copy link
Member

@paulirish paulirish commented Jan 29, 2018

A new axe document on performance suggests safelisting the resultTypes you're interested in. This saves time generating unique selectors (which on mlb.com can take 4s).

cc @dylanb

This reduces about a 1 second of runtime cost of axe on mlb.com. (13s to 12s with the dequelabs/axe-core#699 PR)

@dylanb
Copy link

dylanb commented Jan 29, 2018

It might require you to change your score calculator if you take the exact number of passes into account. We are considering adding the count into the results structure in the future.

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems a-ok to me!

@patrickhulce patrickhulce merged commit 6bebd4c into master Feb 6, 2018
@patrickhulce patrickhulce deleted the axeresulttypes branch February 6, 2018 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants