1. 6

  2. 7

    Someone should take all those example functions and make a library out of them.

    1. 2

      It’s more or less the goal of Zepto.js http://zeptojs.com

    2. 3

      So, I point this out because it’s useful to know what JQuery is actually doing under the hood in most cases; it’ll improve your knowledge of the DOM and of Javascript.

      In addition if you’re only using one small part of the JQuery library, it may not be worth the full include to get the job done.

      1. 5

        I usually have the opposite problem, I use my own Javascript until I want to use some plugin that requires JQuery. It usually doesn’t make sense to rewrite it, so I have to bring in all of JQuery. Case in point, Lobsters doesn’t use much Javascript, but Rails needs it for its dynamic form doodads and the plugin for the tags <select> box on the story submission page.

        1. 1

          What about other browsers like Firefox and chrome?