Basic Compatibility: Basic compatibility library with jQuery and zepto

Recommend this page to a friend!
     
  Info   View files Files   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 127 All time: 373 This week: 4Up
Version License JavaScript version Categories
basic-compat 1.0MIT/X Consortium ...1.0HTML, jQuery
Description 

Author

This package is a library that provides basic compatibility with jQuery and zepto.

It defines the $ object with a few of the functions that provide partial compatibility with jQuery like ready, extend, each, Event, etc..

It also provides functions to access and manipulate DOM objects like each, on, off, trigger, css, attr, removeAttr, prop, html, remove, find, hasClass, addClass, removeClass, toggleClass, hide, show, toggle, is, filter, not, closest, etc..

Innovation Award
JavaScript Programming Innovation award winner
January 2013
Winner


Prize: One year subscription to the PDF edition of the JSMag magazine
jQuery is very popular JavaScript library. However, as the time passed, newer versions of jQuery got too big and that adds some overhead when it is loaded by the browser for the first time.

This JavaScript library provides partial implementation of jQuery with less code, so it takes less time to load.

Manuel Lemos
Picture of Jonathan Gotti
  Performance   Level  
Name: Jonathan Gotti <contact>
Classes: 8 packages by
Country: France France
Age: 48
All time rank: 262 in France France
Week rank: 6 Up2 in France France Equal
Innovation award
Innovation award
Nominee: 5x

Winner: 3x

Details

basic-compat ============ lightweight jquery/zepto compatibility layer with mobile target in mind. There is no goal in being fully compatible, only stay lightweight as much as possible with mobile browsers in mind. css selectors used native document.querySelectorAll methods so don't expect to have all sizzle expressions support here. methods will be added as we need them but don't expect this library to cover all cases handled by jquery or zepto. If your need feet this library use it if you need more just go for zepto or jquery. bug reports and proposals are welcome. currently implemented methods are: - $.ready or $(function(){}) - $.extend - $.each - $.Event - $.isArray - $.isObject - $.isFunction - $.isNumeric - $.isEmptyObject - $.isPlainObject - $.isDomNode - $.isDomElmt - each - on - off - trigger - css (doesn't support .css( propertyName, function(index, value) ) or any compatibility as on opacity or other stuffs) - attr - removeAttr - prop - html - remove - find - hasClass - addClass - removeClass - toggleClass - hide - show - toggle - is - filter - not - closest (no support for context) - append/appendTo - val (doesn't support val(function))

  Files folder image Files (4)  
File Role Description
Plain text file basic-compat.js Class Class source
Plain text file basic-compat.min.js Class Class source
Accessible without login Plain text file bower.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:127
This week:0
All time:373
This week:4Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:66%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:45
 
Love it!
11 years ago (Jonas Earendel)
70%StarStarStarStar