Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michalzalecki/move-away-from-jquery
https://github.com/michalzalecki/move-away-from-jquery
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/michalzalecki/move-away-from-jquery
- Owner: MichalZalecki
- Created: 2015-07-10T18:55:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-10T18:55:38.000Z (over 9 years ago)
- Last Synced: 2024-10-25T12:38:04.232Z (3 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Move away from jQuery
Don't get me wrong, jQuery is awesome but sometimes Vanilla JS is simply good enough:
```javascript
// mafj.js
'use strict';export default {
$(selector, context = document) {
return context[/^#/.test(selector) ? 'querySelector' : 'querySelectorAll'](selector);
},
each(nodes, callback) {
[].forEach.call(nodes, function (element, index) {
callback.call(element, index, element);
});
}
}
```## List of resources
The order is random... so actually there isn't any order.
* [YOU MIGHT NOT NEED JQUERY](http://youmightnotneedjquery.com/)
* [How to forget about jQuery and start using native JavaScript APIs](http://blog.romanliutikov.com/post/63383858003/how-to-forget-about-jquery-and-start-using-native)
* [Ditching jQuery](http://gomakethings.com/ditching-jquery/)
* [A Dive Into Plain JavaScript](http://blog.adtile.me/2014/01/16/a-dive-into-plain-javascript/)