- DOM traversal (selector, filter, find, each, etc.)
- DOM editing (classes & attributes, html, before, etc.)
- Event handling
A couple of simple examples:
// Simple events like jQuery;// Handle form submissions;
There are few ways to use Umbrella JS:
Play with it
Instead of installing it, you can just play with it in JSFiddle:
Use a CDN
jsdelivr.com is an awesome OSS service that hosts many open source projects so you don't need to even download the code:
Using npm is a front-end package manager that makes it super-easy to add a new package:
npm install umbrellajs
If you use a front-end module bundler like Webpack or Browserify,
u is exposed as CommonJS exports. You can pull them in like so:
// ES Modules/Webpack/etc;// Commonjsvar u = ;
ES Module support
If you use an ES Module,
ajax are exposed as ES Module exports.
You can pull them in like so:
import u from 'umbrellajs/umbrella.esm.js'
If you like it or prefer to try it locally, just download
Add it to your project:
Current usage for IE 10- is under 1% for each version (8, 9, 10) so it's not Umbrella's mission to support this. However, those extra seconds gained from loading faster on mobile might be even bigger than that percentage. You should probably test it.
Known, wontfix IE10- bugs:
Unable to get property ____ of undefined or null reference since classList is not supported by IE9-. Just use
polyfill.jsand they will work. Affects:
Choosing multiple options within
<select>doesn't work with IE10- when using
.ajax()). No idea why, but it's a really corner case. Affects:
Author and License
Created and maintained by Francisco Presencia under the MIT license.