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

Check package size for a browser #9

Closed
kkomelin opened this issue Jun 25, 2020 · 2 comments
Closed

Check package size for a browser #9

kkomelin opened this issue Jun 25, 2020 · 2 comments

Comments

@kkomelin
Copy link
Owner

A friend of mine asked about package size and requested displaying it somewhere in README.

I checked the size and noticed that JSDom dependency is huge (2.9MiB).

We need to check whether JSDom is always loaded at the front-end and if it's the case find a way to avoid that.

@kkomelin
Copy link
Owner Author

kkomelin commented Jun 25, 2020

It would be also good to display in Readme the size of dompurify and its competitors, such as sanitize-html. By the way, sanitize-html is really huge (1.2MiB with deps) https://arve0.github.io/npm-download-size/#sanitize-html.

@kkomelin
Copy link
Owner Author

Added the Bundlephobia badge to the project README:
Bundlephobia Minified Size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant