Quick Links: minifiedjs.com - API - Docs Latest version: beta 3 (changelog)
Minified.js is a client-side JavaScript library with low footprint (<8kB) and a large feature set. It offers jQuery-like features (DOM manipulation, animation, events, HTTP requests) and utility functions (collections, date&number formatting, date arithmtic, templates) with a simple, coherent API.
For beta 3:
Name | Legacy IE Support | Compiled Size | Compiled and GZip'd |
---|---|---|---|
Minified | no | 19.1kb | 8075bytes |
...with IE6-8 support | no | 20.8kb | 8828 bytes |
...Web Module only | yes | 9.3kb | 4075 bytes |
...Web Module with IE6-8 support | yes | 11.1kb | 4881 bytes |
jQuery 1.10.2 | yes | 91kb | 32kb |
jQuery 2.0.3 | no | 82kb | 29kb |
MooTools Core NoCompat 1.4.5 | yes | 88kb | 29kb |
Zepto.js 1.0 | no | 27kb | 9.7kb |
The goal of Minified is to provide all the basics that you may need on an HTML page.
Feature | Minified | Minified Web | jQuery | MooTools | Zepto.js |
---|---|---|---|---|---|
CSS Selector | yes CSS1 or browser engine | yes CSS1 or browser engine | yes CSS3 subset + extensions | yes CSS3 subset + extensions | yes browser engine |
CSS Style Changes | yes | yes | yes | yes | yes |
CSS Class Changes | yes | yes | yes | yes | yes |
Element Creation | yes | yes | yes HTML-strings only | yes | yes HTML-strings only |
Element Cloning | yes | yes | yes | yes | yes |
DOM Manipulation | yes | yes | yes | yes | yes |
Animation (numeric) | yes | yes | yes | yes | yes CSS transitions only |
Animation (color) | yes | yes | no | yes | yes CSS transitions only |
Events | yes | yes | yes | yes | yes |
DOMReady | yes | yes | yes | yes | yes |
Ajax/XHR | yes | yes | yes | yes | yes |
Promises/A+-compatible | yes | yes | yes | no | no |
JSON | yes | yes | yes | yes | yes |
Cookies | yes | yes | no | yes | no |
Form Serialization | yes | yes | yes | no | yes |
Collection Helpers | yes | no | yes | yes | yes |
AMD support | yes | yes | yes | no | no |
Templates | yes | no | no | no | no |
Number Formatting | yes | no | no | no | no |
Date Formatting | yes | no | no | no | no |
Date Arithmetic | yes | no | no | no | no |
Online Builder | yes modules and functions | yes modules and functions | no | yes modules | no |
Internet Explorer 6-8 compatible | yes IE-support optional | yes IE-support optional | yes jQuery 1.x only | yes | no |
- General purpose functions to effectively write HTML-based web applications
- A very small footprint. The complete distribution will always be smaller than 8kB, and the Web module under 4kb.
- A clean and simple, easy to use API.
- A stable API that won't change.
To build Minified, you need to install Node.js and Grunt. Then enter the Minified directory and install the dependencies:
npm install
To build the whole project including the site, use
grunt all
If you only want to compile the code, use
grunt code
Public Domain. Use, modify and distribute it any way you like. No attribution required. To the extent possible under law, Tim Jansen has waived all copyright and related or neighboring rights to Minified. Please see http://creativecommons.org/publicdomain/zero/1.0/
Call me old-fashioned, but the size of JavaScript libraries like jQuery and MooTools has always bothered me. Don't get me wrong, they are fantastic libraries and I really like to use them, but they contain about 90kb of code even after minification. This code needs to be parsed and executed on every page that you include them on. For me, that just feels too large for what that they offer, and especially for what I need. The 30kb size that they have after gzipping will can also cause a significant delay on low-bandwidth networks.
In the last years I worked on some personal projects (jarfiller.org is the only one that has been published), and when I work on them, I usually strive for perfection. Every unnecessary kilobyte hurts. So instead of using jQuery, I started writing my own little helper functions to replace jQuery functionality without the overhead. As I worked on several other projects, I wrote more and more helper functions and started sharing them between projects until they became a library of their own. By now they are so mature that I believe that this library, called Minified, became a valid alternative to jQuery and MooTools at a fraction of the size.
Thank you for checking out Minified. Tim Jansen