A Truly Lightweight JavaScript Library
What?
Minified.js is a client-side JavaScript
library that's both powerful and small. It offers jQuery-like features (DOM manipulation, animation,
events, HTTP requests) and utility functions (collections, date&number formatting, date arithmetic, templates) with a single, consistent API.
Why?
Minified is smaller!
Minified weighs only 8kB. The Web module with its jQuery-like feature set is just 4kB, a fraction of other libraries' size.More features!
Minified has a powerful API that offers more than similar libraries - no need to include one library for DOM manipulation and events, another one for handling dates and a third library for templates.No surprises!
Minified has no polyfills and does not try too hard to hide browser differences. Your JavaScript code works with the same features as your HTML and CSS code.Where?
News
August 5, 2015: Minified 1.1
July 27, 2014: Minified 1.0
July 27, 2014: Minified 1.0
July 13, 2014: Announcement: Minified Reboot
June 6, 2014: Beta 6 released
March 28, 2014: Beta 5 released
March 9, 2014: Minified Components by Moloc Lab
December 17, 2013: Beta 4 is out!
November 8, 2013: Beta 3 released!
August 20, 2013: Beta 3 Update
July 31, 2013: Minified Web beta 2 is out
July 20, 2013: Redefining the 4kB size limit
July 13, 2013: Minified Web beta 1 released!
Getting Started
This demo shows you how to use a simple HTML template and how to handle events:
This demo is a bit more complex and shows a simple, animated app:
Check out the How-to and the API docs to explore Minified on your own. Or go to this presentation or the tutorial for some more guidance.
Here are a few JSFiddle example to get you started:
Animation 1,
Animation 2,
Animation Loops,
Animation Gradients,
Fade/Slide Toggles,
Request + JSON,
HTML Templates 1,
HTML Templates 2,
Number Formats,
Date Formats
Size Comparison
| Name | Legacy IE Support | Compiled Size | Compiled and GZip'd |
|---|---|---|---|
| Minified (complete) | no | 20kb | 8.0kb |
| ...plus IE6-8 support | no | 23kb | 9.0kb |
| ...Web Module only | yes | 10kb | 4.0kb |
| ...Web Module with IE6-8 support | yes | 12kb | 4.9kb |
| jQuery 1.11.3 | yes | 94kb | 32kb |
| jQuery 2.1.4 | no | 82kb | 29kb |
| MooTools Core NoCompat 1.5.0 | yes | 88kb | 29kb |
| Zepto.js 1.1.6 | no | 25kb | 9.1kb |
Feature Comparison
| Feature / Library | 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 | no extra module, CSS only |
| Animation (color) | yes | yes | no | yes | no extra module, CSS 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 |
Browser Compatibility
Minified has been tested successfully with...
| Firefox | Chrome | Edge | Internet Explorer | Safari / iOS | Safari / MacOS | Android browser |
|---|---|---|---|---|---|---|
| 3.6 and higher | 14 and higher | 0.11 | 6.0 and higher | iOS 3.0 and higher | 5.1 and higher | Android 2.2 and higher |
Please send feedback to tim@tjansen.de. For updates follow me on Minified's Google+ page or on Twitter. Legal Notice / Impressum.