All Projects → josh → Jquery Selector Set

josh / Jquery Selector Set

Licence: mit

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Jquery Selector Set

100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+1004.57%)
Mutual labels:  jquery
Kendo Ui Core
An HTML5, jQuery-based widget library for building modern web apps.
Stars: ✭ 2,394 (+993.15%)
Mutual labels:  jquery
Bootstrap Checkbox
A checkbox component based on Bootstrap framework.
Stars: ✭ 214 (-2.28%)
Mutual labels:  jquery
Uniform
A jQuery plugin to make your form controls look how you want them to. Now with HTML-5 attributes!
Stars: ✭ 2,219 (+913.24%)
Mutual labels:  jquery
Jquery Aniview
A jQuery plugin that works in harmony with animate.css in order to enable animations only when content comes into view.
Stars: ✭ 205 (-6.39%)
Mutual labels:  jquery
Bala
A function for elements selection
Stars: ✭ 213 (-2.74%)
Mutual labels:  jquery
Gentelella Rtl
Free RTL Bootstrap 3 Admin Template
Stars: ✭ 194 (-11.42%)
Mutual labels:  jquery
Magnify
A lightweight jQuery magnifying glass zoom plugin.
Stars: ✭ 218 (-0.46%)
Mutual labels:  jquery
Civitas
Civitas is an empire-building game written in Javascript with the help of the jQuery library.
Stars: ✭ 207 (-5.48%)
Mutual labels:  jquery
Amaranjs
Nice, sleek and stylish notifications.
Stars: ✭ 214 (-2.28%)
Mutual labels:  jquery
Cms
GleezCMS - A Light, Simple, Flexible Content Management System
Stars: ✭ 200 (-8.68%)
Mutual labels:  jquery
Jcf
Advanced form elements customization using CSS/JS
Stars: ✭ 203 (-7.31%)
Mutual labels:  jquery
Oridomi
📃 Fold up DOM elements like paper
Stars: ✭ 2,390 (+991.32%)
Mutual labels:  jquery
Jquery Easy Ticker
jQuery easy ticker is a news ticker like plugin, which scrolls the list infinitely. It is highly customizable, flexible with lot of features and works in all browsers.
Stars: ✭ 196 (-10.5%)
Mutual labels:  jquery
Graphql Demo
🎉Koa + GraphQL + Apollo-Server demo
Stars: ✭ 215 (-1.83%)
Mutual labels:  jquery
Bridge
♠️ C# to JavaScript compiler. Write modern mobile and web apps in C#. Run anywhere with Bridge.NET.
Stars: ✭ 2,216 (+911.87%)
Mutual labels:  jquery
Hass Configurator
Configuration UI for Home Assistant
Stars: ✭ 211 (-3.65%)
Mutual labels:  jquery
Jqplot
A Versatile and Expandable jQuery Plotting Plugin
Stars: ✭ 219 (+0%)
Mutual labels:  jquery
Percircle
⭕️ CSS percentage circle built with jQuery
Stars: ✭ 217 (-0.91%)
Mutual labels:  jquery
Jquery Modal
The simplest possible modal for jQuery
Stars: ✭ 2,459 (+1022.83%)
Mutual labels:  jquery

jQuery SelectorSet patch

Speeds up jQuery event delegation by using SelectorSet for matching event targets.

Installation

Available on Bower as jquery-selector-set.

$ bower install jquery-selector-set

This should also download the dependencies, jquery and selector-set.

Alternatively you can download the jquery.selector-set.js and selector-set.js files individually. I'll assume you probably already have jQuery itself setup at this point.

$ curl -O https://raw.github.com/josh/jquery-selector-set/master/jquery.selector-set.js
$ curl -O https://raw.github.com/josh/selector-set/master/selector-set.js

Usage

There are no new APIs, use jQuery event handlers as you would.

Be sure to load the patch right after you load jQuery.

<script src="jquery.js"></script>
<script src="selector-set.js"></script>
<script src="jquery.selector-set.js"></script>
<script src="app/foo.js"></script>
<script src="app/bar.js"></script>

Supported jQuery versions

This plugin is currently tested on jQuery 1.8.x, 1.9.x, 1.10.x, 2.0.x and 2.1.x.

Performance

This patch improves the event dispatch code path for delegated jQuery event handlers. For any user event, click, keydown, etc, jQuery.event.dispatch is invoked. This also applies to custom events using trigger: $(el).trigger('menu.open').

This jsPerf shows a typical GitHub code snippet (a typical deeply nested tree) and a handful of globally delegated selectors.

http://jsperf.com/jquery-selector-set-trigger

Development

Clone the repository from GitHub.

$ git clone https://github.com/josh/jquery-selector-set

You'll need to have Grunt installed. If you don't have the grunt executable available, you can install it with:

$ npm install -g grunt-cli

Now just cd into the directory and install the local npm dependencies.

$ cd jquery-selector-set/
$ npm install

Use grunt test to run the test suite.

$ grunt test
Running "jshint:all" (jshint) task
>> 5 files lint free.

Running "qunit:all" (qunit) task
Testing test/test.html .....................OK
>> 100 assertions passed (50ms)

Done, without errors.

License

Copyright (c) 2013 Joshua Peek

Distributed under an MIT-style license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].