dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.87k stars 764 forks source link

Consider having a size budget for axe-core #1930

Open straker opened 4 years ago

straker commented 4 years ago

From the discussion on https://github.com/GoogleChrome/lighthouse/pull/10056, axe 3.4.0 added 60KB minified to our codebase, mostly from the addition of core-js Unit32Array polyfills needed for the ligature icon detection. This pushed lighthouse over their size budget, causing them to fail their build.

For 4.0.0 we should consider introducing a size budget ourselves so we don't continue to increase in size (as we have done as shown by @patrickhulce chart)

image

scurker commented 4 years ago

@straker I've put some of this in place already with the extension, so hit me up if you want to pair on this for axe-core.

WilcoFiers commented 3 years ago

Dropped axe-core's filesize from 138kb in 4.0 to 108kb in 4.1! For 4.2 we should put tests in place to enforce a maximum size.

dylanb commented 3 years ago

Can we add a performance budget too? Some of the techniques for reducing size, may increase execution time.

straker commented 3 years ago

I like the idea of a performance budget. We'll probably want to separate our metrics into different size pages or buckets though as some rules perform worse on very large pages but this may be acceptable for the rule itself.