Feature Request
From the benchmark (performed by @SukkaW) we can see that cheerio can cause significant performance hit.
While cheerio is not necessary for the core functions of Hexo, it is currently utilized by several default plugins:
We are hoping to re-implement them without depending on cheerio, if possible.
Related PRs:
Related issue:
Feature Request
From the benchmark (performed by @SukkaW) we can see that cheerio can cause significant performance hit.
While cheerio is not necessary for the core functions of Hexo, it is currently utilized by several default plugins:
meta_generator.jsexternal_link.jstoc.jsopen_graphWe are hoping to re-implement them without depending on cheerio, if possible.
Related PRs:
perf(meta_generator): re-implement as a helper #3669perf(meta_generator): drop cheerio #3671perf(open_graph): only require cheerio when content contains '<img' #3670perf(open_graph): replace cheerio with dom-parser #3679refactor(open_graph): drop cheerio and use regex #3680perf(external_link): drop cheerio and use regex #3685refactor(toc_helper): utilize hexo-util #3850Related issue: