No description, website, or topics provided.
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
node_modules
src
test
.gitignore
Gruntfile.js
LICENSE.txt
README.md
index.html
package.json

README.md

embryoJS

JS mini library to replace jQuery with minimal lines of code. Inspired by Zepto.js, but quite smaller in scope and size.

Why

I was tired of jQuery parsing times in big projects, mainly in mobile devices. Don't misunderstand me, jQuery is pretty nice, but too overbloated due to legacy browsers' support. EmbryoJS supports only modern browsers, on purpose, to make it tiny and blazing fast.

API scope

EmbryoJS does not match all of jQuery/Zepto API, just the most used methods, which were calculated by using the scraping scripts we have built in casperJS (to be published as a separate repo) targeting Alexa's top 100 business/arts sites. We counted occurrence of each method in each site, converted to percentage, ordered and extracted the most used methods. So far, these include:

  • $(selector)
  • eq
  • children
  • css
  • attr
  • hasClass
  • addClass
  • removeClass
  • show
  • hide

Build

We are using GruntJS to build the library. It is setup to automatically hint, uglify, test.

Testing

Jasmine v1.3 is used to test the library.

Status

Use at your own risk, not yet for production.

License

FreeBSD