Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

Datasilk/Selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/selectorjs/0.9.12/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

  • add
  • addClass
  • after
  • animate (requires Velocity.js)
  • append
  • attr
  • before
  • children
  • closest
  • css
  • each
  • empty
  • eq
  • filter
  • find
  • first
  • get
  • has
  • hasClass
  • height
  • hide
  • hover
  • html
  • index
  • innerHeight
  • innerWidth
  • is
  • last
  • map
  • next
  • nextAll
  • not
  • off
  • offset
  • offsetParent
  • on
  • parent
  • parents
  • position
  • prepend
  • prev
  • prop
  • push (*pushStack)
  • ready
  • remove
  • removeAttr
  • removeClass
  • removeProp
  • serialize
  • show
  • siblings
  • slice
  • stop (requires Velocity.js)
  • toggle
  • toggleClass
  • val
  • width

Supported jQuery objects

  • $

Supported jQuery functions

  • $.ajax
  • $.extend

Unsupported jQuery functionality

  • jQuery object
  • All jQuery plugins
  • jQuery UI
  • jQuery.fx
  • Deprecated functions
  • More...

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

  • *pushStack is now called push

About

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

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp