Ask HN: How to avoid JS/CSS bloat? In the thread today about the size of Doom compared to a modern webpage [1], it was mentioned a number of times that including jQuery, Bootstrap, etc. even for the smallest of websites one of the reasons why downloading and rendering modern webpages is so slow. I could not find an acceptable solution. It was mentioned that pointing to a CDN increases the chances that the resource is cached, but that is not always the case. What is the alternative? Using smaller libraries? Not using libraries? Are Zepto and Skeleton good enough for small websites? What are other libraries/frameworks of similar size that you have used and liked? Are we at a point where using vanilla JS and CSS is good enough? [1] https://news.ycombinator.com/item?id=11548816 |