Hacker GitHub

← All repos

franciscop/umbrella

View on GitHub ↗ ★ 2,349 JavaScript

:umbrella: Lightweight javascript library for DOM manipulation and events

12 mentions on Hacker News by 4 people: 1 story, 11 comments · first 2017-02-08 · latest 2022-08-16

Mentions per year 12 mentions · busiest year 2018 (5)
20082026
  1. …that do that job which may be worth looking into. https://github.com/fabiospampinato/cash or https://github.com/franciscop/umbrella to give a couple of examples. Some explicitly support IE11 so you are not dropping as much support for…
  2. …function (el, name) { el.classList.add(name); }); }; [1] https://youmightnotneedjquery.com/ [2] https://github.com/franciscop/umbrella/blob/master/src/plugi...
  3. …not really moved over, compare "addClass" in jQuery vs UmbrellaJS: - Umbrella 6 lines (max col 55): https://github.com/franciscop/umbrella/blob/master/src/plugi... - jQuery 35 lines (max col 83): https://github.com/jquery/jquery/blob/master…
    comment by franciscop · 2021-01-14 · in You might not need jQuery (2014)
  4. …a screenshot and/or the device and browser you are using please? Ideally in Github as an issue: https://github.com/franciscop/umbrella/issues/new , but here is fine as well.
  5. …[3] Cash tests: https://github.com/kenwheeler/cash/blob/master/test/index.js [4] Umbrella tests: https://github.com/franciscop/umbrella/blob/master/docs/test... [5] Cash addClass code: https://github.com/kenwheeler/cash/tree/master/src/attr…
  6. …Umbrella JS supports Internet Explorer 11+, with some of the known bugs and wont-fix here: https://github.com/franciscop/umbrella#support-ie11 There is a polyfill to help here: https://github.com/franciscop/umbrella/blob/master/polyfill....
  7. …IMHO (since it also makes for a much smaller size, compare to jQuery's .addClass(name) [2]). [1] https://github.com/franciscop/umbrella/blob/master/src/plugi... [2] https://github.com/jquery/jquery/blob/master/src/attributes/...
  8. whenever i feel the need for jquery these days, i typically reach for the much smaller, faster, ie11+ https://github.com/franciscop/umbrella
    comment by leeoniya · 2017-12-21 · in The Future of JQuery UI and JQuery Mobile
  9. …https://github.com/jquery/jquery/blob/master/src/attributes/... - Umbrella JS's addClass(), 5 lines: https://github.com/franciscop/umbrella/blob/master/src/plugi... So the choice is either well-tested libraries that slows your users down…
  10. …won't contain commas OR that it should be split in the commas), one way to do it in Javascript ( https://github.com/franciscop/umbrella/blob/master/src/plugi... ): return args.toString().split(/[\s,]+/).filter(/* ... */);
  11. …from that: - Picnic CSS: http://picnicss.com/ - Umbrella JS (right now website in maintenance): http://github.com/franciscop/umbrella Also I wrote an article on the topic: - https://medium.com/@fpresencia/understanding-gzip-size-836c7...…
    comment by franciscop · 2017-02-08 · in The web sucks if you have a slow connection