I (heart) jQuery

I added jQuery into the mix today. It should be able to replace all of the functions currently used in engine.js

As an example, expanding and collapsing items. Up until the revision 89, around 45 lines were used for working out what was clicked and changing it and the background. It took every click and checked whether it was needed. If it was, it went through complicated processes working out what to do.
With jQuery, it’s all handled for us, and the only code we need is:
$(document).ready(function() {

Review: We cut down 45 lines to 3 lines! Everything is handled for us now by jQuery and is about 4 times faster. Plus, it’s ultra easy to add new features, like the removal of date headers. Thanks jQuery!

This entry was posted in General and tagged , . Bookmark the permalink.

Discussion for “I (heart) jQuery”

  1. Excellent ! I’ll try it very soon !

  2. Hmm, looks like Magpie doesn’t like < in content. I’ve filed bug 12, but may be related to bug 10.

Leave a Reply

We support Gravatars and a limited set of (X)HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>