https://github.com/byjg/yaj
Yet another jQuery Replacement (lightweight and polyfill)
https://github.com/byjg/yaj
jquery-replacement lightweight polyfill
Last synced: 28 days ago
JSON representation
Yet another jQuery Replacement (lightweight and polyfill)
- Host: GitHub
- URL: https://github.com/byjg/yaj
- Owner: byjg
- License: mit
- Created: 2017-07-04T21:46:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-16T02:26:42.000Z (over 1 year ago)
- Last Synced: 2025-03-29T17:35:45.175Z (about 2 months ago)
- Topics: jquery-replacement, lightweight, polyfill
- Language: JavaScript
- Size: 1.04 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yaj.js
[](https://github.com/byjg/yaj/actions/workflows/build.yml)
[](http://opensource.byjg.com)
[](https://github.com/byjg/yaj/)
[](https://opensource.byjg.com/opensource/licensing.html)
[](https://github.com/byjg/yaj/releases/)
[](https://www.jsdelivr.com/package/npm/yaj)Yaj is a achronymous of "Yet Another jQuery Replacement". This intend to be a very lightweigth script
(less than 3kb minified and gzipped) and have the most used jQuery methods as a polyfill class supporting
since IE6 to the modern browsers.This is not intended to fully replace or even to be compatible with jQuery and Zepto.
But can be used to avoid conflits with previous jQuery implementations or as an alternative.Yaj main class is not "$" or "_". Instead we use "yo" (because yaj is also spin quickly in a pirouette and then snap
and point at a person, uttering the greeting, "yo.")For example:
```javascript
yo('#some .selector').addClass('class').removeClass('otherclass').show();
```## Testing
```shell
yarn test
```## Documentation
[List of commands](docs/toc.md)
----
[Open source ByJG](http://opensource.byjg.com)