{"id":29221,"date":"2017-02-16T18:01:21","date_gmt":"2017-02-16T10:01:21","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=29221"},"modified":"2017-12-11T05:01:59","modified_gmt":"2017-12-10T21:01:59","slug":"umbrella-js","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/","title":{"rendered":"UmbrellaJS is Your Alternative to jQuery"},"content":{"rendered":"<p>The open source <strong>jQuery library<\/strong> has dominated web development for years. It\u2019s still one of the most trusted resources for JavaScript, but there\u2019s a <strong>new library in town<\/strong> called <strong><a target=\"_blank\" href=\"https:\/\/umbrellajs.com\/\">UmbrellaJS<\/a><\/strong>.<\/p>\n<p>Umbrella is also <strong>completely open source<\/strong> and <strong>offers much of the same functionality<\/strong> including element selectors, DOM manipulation, and AJAX requests.<\/p>\n<p>Umbrella JS works almost exactly like jQuery except with <strong>different syntax and function calls<\/strong>. So if Umbrella is this close to jQuery, <strong>what\u2019s the benefit<\/strong> of using it?<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/jquery-3-new-features\/\">10 Coolest Features in jQuery 3<\/a>\n\t\t\t\t<\/p>\n<p>Well, Umbrella is meant to be a <strong>much smaller library than jQuery<\/strong> and it\u2019s <strong>only for DOM manipulation<\/strong>. And honestly, this library is <strong>super compact<\/strong> when compared to jQuery.<\/p>\n<p>The full Umbrella.js library is <strong>about 4KB non-minified<\/strong>. jQuery\u2019s latest version <strong>totals over 250KB<\/strong>! So if you\u2019re looking for a <strong>simplified version of jQuery<\/strong> then Umbrella will be <strong>quicker to load<\/strong> and <strong>just as simple to use<\/strong>.<\/p>\n<p>The <a target=\"_blank\" href=\"https:\/\/umbrellajs.com\/documentation\">online documentation<\/a> offers a <strong>list of all the functions and parameters<\/strong> you can pass into those functions. It\u2019s the <strong>complete guide<\/strong> to Umbrella and it\u2019s <strong>constantly being updated<\/strong>.<\/p>\n<p>Thankfully, a lot of similar jQuery features are mimicked through Umbrella so the <strong>syntax is very easy to read<\/strong>. For example, the <code>on()<\/code> method is the same and you can pass all the same event listeners such as <code>click<\/code> or <code>hover<\/code>.<\/p>\n<p><strong>The biggest difference<\/strong> is that Umbrella selectors use the <code>u()<\/code> method instead of jQuery\u2019s common <code>$()<\/code>. Here\u2019s a <strong>code example<\/strong> that triggers an alert box when someone clicks a button with the class <code>.button<\/code>.<\/p>\n<pre>\r\nu(\"button\").on('click', function(){\r\n  alert(\"Hello world\");\r\n});\r\n<\/pre>\n<p>It\u2019s a simple example but it perfectly illustrates the value of Umbrella.<\/p>\n<p>To <strong>see a live demo<\/strong> check out <a target=\"_blank\" href=\"https:\/\/codepen.io\/atelierbram\/pen\/GZrqrJ\" rel=\"nofollow\">this pen<\/a> offering a <strong>sample input field selection<\/strong>. All the output code is <strong>displayed right on the screen<\/strong>. You can also <strong>study the Umbrella JS source code<\/strong> to see how it works.<\/p>\n<p><iframe height=\"506\" scrolling=\"no\" title=\"Umbrella JS\" src=\"https:\/\/codepen.io\/\/atelierbram\/embed\/GZrqrJ\/?height=506&theme-id=0&default-tab=result&embed-version=2\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\" style=\"width: 100%;\">See the Pen <a href=\"https:\/\/codepen.io\/atelierbram\/pen\/GZrqrJ\/\" rel=\"nofollow\">Umbrella JS<\/a> by Bram de Haan (<a href=\"https:\/\/codepen.io\/\/atelierbram\" rel=\"nofollow\">@atelierbram<\/a>) on <a href=\"https:\/\/codepen.io\/\" rel=\"nofollow\">CodePen<\/a>. <\/iframe><\/p>\n<p>To learn more about Umbrella check out the <strong><a target=\"_blank\" href=\"https:\/\/umbrellajs.com\/\">official website<\/a><\/strong> or peek at the source code live in the <strong><a target=\"_blank\" href=\"https:\/\/github.com\/umbrellajs\/umbrella\" rel=\"nofollow\">GitHub repo<\/a><\/strong>.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/code-optimization-jquery-best-practices\/\">Six Essential jQuery Practices to Boost Performance<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>The open source jQuery library has dominated web development for years. It\u2019s still one of the most trusted resources for JavaScript, but there\u2019s a new library in town called UmbrellaJS. Umbrella is also completely open source and offers much of the same functionality including element selectors, DOM manipulation, and AJAX requests. Umbrella JS works almost&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392],"tags":[3497,911,511],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>UmbrellaJS is Your Alternative to jQuery - Hongkiat<\/title>\n<meta name=\"description\" content=\"The open source jQuery library has dominated web development for years. It&#039;s still one of the most trusted resources for JavaScript, but there&#039;s a new\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UmbrellaJS is Your Alternative to jQuery\" \/>\n<meta property=\"og:description\" content=\"The open source jQuery library has dominated web development for years. It&#039;s still one of the most trusted resources for JavaScript, but there&#039;s a new\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-16T10:01:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-10T21:01:59+00:00\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"UmbrellaJS is Your Alternative to jQuery\",\"datePublished\":\"2017-02-16T10:01:21+00:00\",\"dateModified\":\"2017-12-10T21:01:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/\"},\"wordCount\":341,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Javascript Library\",\"jQuery\",\"Web Developers\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/\",\"name\":\"UmbrellaJS is Your Alternative to jQuery - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-02-16T10:01:21+00:00\",\"dateModified\":\"2017-12-10T21:01:59+00:00\",\"description\":\"The open source jQuery library has dominated web development for years. It's still one of the most trusted resources for JavaScript, but there's a new\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/umbrella-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UmbrellaJS is Your Alternative to jQuery\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"UmbrellaJS is Your Alternative to jQuery - Hongkiat","description":"The open source jQuery library has dominated web development for years. It's still one of the most trusted resources for JavaScript, but there's a new","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/","og_locale":"en_US","og_type":"article","og_title":"UmbrellaJS is Your Alternative to jQuery","og_description":"The open source jQuery library has dominated web development for years. It's still one of the most trusted resources for JavaScript, but there's a new","og_url":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-02-16T10:01:21+00:00","article_modified_time":"2017-12-10T21:01:59+00:00","author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"UmbrellaJS is Your Alternative to jQuery","datePublished":"2017-02-16T10:01:21+00:00","dateModified":"2017-12-10T21:01:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/"},"wordCount":341,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Javascript Library","jQuery","Web Developers"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/umbrella-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/","url":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/","name":"UmbrellaJS is Your Alternative to jQuery - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2017-02-16T10:01:21+00:00","dateModified":"2017-12-10T21:01:59+00:00","description":"The open source jQuery library has dominated web development for years. It's still one of the most trusted resources for JavaScript, but there's a new","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/umbrella-js\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/umbrella-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"UmbrellaJS is Your Alternative to jQuery"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7Bj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=29221"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29221\/revisions"}],"predecessor-version":[{"id":42491,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29221\/revisions\/42491"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=29221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=29221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=29221"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=29221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}