Icontem

Basic Compatibility: Basic compatibility library with jQuery and zepto

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-05-21 (5 months ago) RSS 2.0 feedStarStarStar 56%Total: 122 All time: 357 This week: 24Up
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
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  
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:122
This week:0
All time:357
This week:24Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:66%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:28
 
Love it!
3 years ago (Jonas Earendel)
70%StarStarStarStar