mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
The slowest part of screenshotter tests is the page load, probably because so many assets must be loaded over the slow docker connection. On my laptop this takes ~4s per test. The new default avoids this cost by rendering new TeX on the existing page. For second and subsequent tests, use `executeAsyncScript` to call KaTeX, rather than performing a full page + asset load. (If too many errors happen in `--verify` mode, we fall back to full loads.) The `--reload` flag will enable the previous behavior. On my laptop, a full verify (chrome + FF) used to take 12m20s+. It now takes 2m23s, a speed up of 6x.