Only use the essential sections of JavaScript and CSS libraries


JavaScript libraries (e.g. jQuery, MooTools and YUI) and ready-to-use CSS frameworks (e.g. Bootstrap, skeleton, gumby and foundation) are excellent tools for building websites quickly because they meet all the most common requirements. On the other hand, we only use a small part of their capabilities, yet these frameworks and libraries are not based on a modular architecture, forcing the user to download the whole library in order to use only a small percentage of its features.
Whenever possible, it is best to do without these libraries (c.f. or to only keep the parts which are actually used (c.f. If this is not feasible, download the source code and create a custom build that only includes the necessary components.

Some frameworks, like Boostrap here, offer the ability to create custom-built libraries which only contain the sections actually used by the website, reducing the size of the libraries and the resources consumed when run.