jQuery’s Predefined Effect Speeds

Posted in JavaScript on November 5th, 2009 by Kalen Gibbons

The actual duration, in milliseconds, of jQuery’s predefined effect speeds is not well documented. The possible value are: “slow”, “normal”, or “fast”, but what does that mean? I had to dig into the source code to find out.

Fast: 200 ms
Normal: 400 ms (default)
Slow: 600 ms

 


Yet another reason for disappearing background images in IE6

Posted in Bugs, JavaScript on June 10th, 2008 by Kalen Gibbons

I was bit by another IE bug the other day; no matter how much I work with IE I never seem to be immune. That may be due to the fact that IE has sooo many problems. On this occasion several background images were disappearing in IE6. I tried the common solutions first: relative positioning, removing floats, setting widths, etc. and nothing worked. It took me quite a while to uncover the culprit.

href="javascript: void(0);"

 

//I was using it in a common manner:
<a onclick="switchTabs(‘comments’)" href="javascript: void(0);">Comments</a>

Once I removed the href=”javascript: void(0);” from the link everything worked fine. I had searched the Internet for days trying to find the solution to this bug and never found a thing. This is probably because not too many people use href=”javascript: void(0);”… and now I know why.


Tags: ,

jQuery is even faster with the release of version 1.2.6

Posted in JavaScript on June 6th, 2008 by Kalen Gibbons

I love jQuery. I’ve been getting into it over the past few weeks, and I’ve found it to be a very powerful and robust library. I remember how impressed I was when jQuery 1.1.3 came out less than a year ago, claiming to be 800% faster than its predecessor. Well, the fellows at jQuery have just released jQuery 1.2.6 and have again made some pretty significant improvements. Beside adding new functionality and fixing bugs they have increased the performance on several key features of the library; for more details check out their Google Spreadsheet.

  • Event Handling is 103% Faster
  • CSS Selectors are 13% faster
  • .offset() is 21% faster
  • .css() is 25% faster

I’m excited to try out the new version for myself. If you haven’t checked out jQuery lately you should give jQuery 1.2.6 a try, it’s amazing.


Tags: