Just put this in your webpage:
and then instead of using
DOM and it saves you 5 bytes.
Improvements to original size of website
The more references you have to
document the more bytes it can save. If you have more than 22
document references it starts decreasing your bundle instead of increasing.
Largely Used Libraries If They Use this
jquerywould decrease their size by over 1kb
reactwould decrease their size by over 1kb
angularwould decrease their size by over 2kb
So that is how you can decrease your website bundle size. If you liked this post and the library, star the library to support it.Back | DEV.to
If you are looking at this you probably wonder who I am; teenage open source maintainer