Home

Awesome

Selector

A micro JavaScript library used as a replacement for jQuery, weighing in at nearly 5KB.

The aim of this project is to build a library that can be used to replace jQuery. The challenge will be to shrink the overall filesize of the library, keeping the minified, gzip compressed file under 5KB while simultaniously adding more support for jQuery features. The ultimate goal is to have a modern library that runs faster than jQuery under stress.

View Demo

Add to your project via public CDN from jsDelivr

https://cdn.jsdelivr.net/npm/selectorjs@0.9.12/dist/selector.min.js

File size comparison between jQuery and selector.js

LibrarySelector.jsjQuery 3.2jQuery 3.2 Slim
Uncompressed68K271K217K
Minified16K84.5K68K
Minified & Gzipped4.8K28.6K22.7K

Supported jQuery selector functions

Supported jQuery objects

Supported jQuery functions

Unsupported jQuery functionality

Disclaimer

This project is in beta and has been tested in Chrome 51+, IE8+ (using ie-shim.js), Safari 9+, and iOS 6+. Use at your own risk.

NOTES