3 ms·
what does it do?
by noob007 16y ago
what does it do?
- j_baker 16y agoMore importantly, what does it do that's worth having to remember how I make a unicode ƒ?
- sebilasse 16y agoALT + f on a mac, not too hard. but I agree
- ramy_d 16y agoctrl+shit+u 192 on ubuntu for ƒ. might as well have used the snow man ☃('body').style.background = '#f4f6f8'; call it brr.js
- Flenser 16y agoand ALT+0131 on the numpad on windows
- jarin 16y agoUsing ƒ for selectors in your JavaScript might be a subtle way to say "I developed this on a Mac, because no way in hell would I type this character 37 times on Windows or Linux".
- deleted 16y ago[deleted]
- kachnuv_ocasek 16y agoYou can also use ß or fu.
- coderdude 16y agoIt looks like it lets you use jQuery-style selectors to get at elements on a page.
- nailer 16y agoWhy use it vs jquery?
- coderdude 16y agoIf all you wanted was to use jQuery-style selectors then this file is only ~3kb compared to jQuery which is like ~180kb (uncompressed).
- deleted 16y ago[deleted]
- Devilboy 16y agoDoes this support a decent selection of browsers?
- coderdude 16y agoLol people, I don't know. I didn't make this and I've never seen it before today. I'm doing the same research here that you guys could be doing.
- rmccue 16y agoCouldn't you just use Sizzle directly?
- Yaggo 16y agoIf you link to jQuery on Google's CDN, changes are pretty high that it's already cached by the browser.
- coderdude 16y ago
- btn 16y agoIt looks like it's just a more convenient way of calling "querySelectorAll" on elements (you can call it on arrays of elements, or with arrays of selectors, for example). I'm not sure why you'd use it over Sizzle, unless you wanted to do something very small and specific.