minimalcss: Slow when HTML + CSS is large
When I run:
▶ time node bin/minimalcss.js https://www.peterbe.com/plog-original.html -o /dev/null
It steadily takes about 6-7 seconds. That’s way too slow. Let’s see what we can do.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 21 (15 by maintainers)
Commits related to this issue
- Optimize DOM selector lookups by pre-warming by selectors' parents Part of #287 — committed to peterbe/minimalcss by peterbe 6 years ago
- Optimize DOM selector lookups by pre-warming by selectors' parents (#296) * Optimize DOM selector lookups by pre-warming by selectors' parents Part of #287 * feedbacked * Update tests/utils.... — committed to peterbe/minimalcss by deleted user 5 years ago
what would be the value-add of
--use-dropcss
over the DropCSS/Puppeteer demo i posted above and the same advice in its docs? if you’d like to add this option to minimalcss, then certainly feel free to do so.i’m not sure i got this one 😃 did you want me to compare the diff between dropcss and minimalcss outputs of your site?