Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cheerio, use DOMParser API #7

Open
danBamikiya opened this issue Aug 15, 2021 · 0 comments
Open

Remove cheerio, use DOMParser API #7

danBamikiya opened this issue Aug 15, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request product Improvements or changes to the product

Comments

@danBamikiya
Copy link
Owner

I just found out the browser has a DOMParser API that provides an interface for parsing XML and HTML.

This can be used instead of Cheerio to parse HTML in the webscraper. Reducing the build size because Cheerio is adding a whooping almost 400 KiB as a dependency in production builds.

The total build size for all javascript files is 438 KiB as of the last build run out of which Cheerio is taking almost almost 400 KiB 🤯

@danBamikiya danBamikiya self-assigned this Aug 15, 2021
@danBamikiya danBamikiya added enhancement New feature or request product Improvements or changes to the product labels Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request product Improvements or changes to the product
Projects
None yet
Development

No branches or pull requests

1 participant