jquery-performance

JQuery - Grid Row Highlighting Best Practise

I am looking for the best performing script for providing a hover state to rows within a grid. 90% of users have ie6 clients therefore I cant rely on css :hover The grid is a standard table, some cells have inner tables. I originally started using the .live method with mouseover and mouseout, however this has massive cpu implicatio...

jQuery selectors performance

Hi I know I'm just being OCD about a few milliseconds worth of performance time, but I was just wondering why the following is true for me. It seems goes against my logic. I currently have a div that has fades out the image inside on hover: $('div.someclass').hover(function() { $(this).children('img').fadeOut(function(){ /...

Improving performance of jquery/javascript webpage logic.

Hi, EDIT: I am also after advice if there is a better way to go about this?? I have a webpage that displays a timesheet for the user to fill out. The timesheet is for a month so it has as many rows in the month and also 5 columns of data, Normal hours, extended hours, shift hours holidays hours and total. I have a dropdown list that a...

is my jQuery script performing bad?

Hey there! I build a web tool for a photo lab to start print orders to be processed by the printers. On older Mac's I am experiencing bad performance with my scripts. I was wondering whether there are some low performing parts in my scripts. Do you guys see such low performing parts? thx, Max $(function() { /* when start button is ...

Making jQuery statements shorter

I have the following jQuery statement which works fine but I was wondering if it could be shortened and if making it more concise would speed up performance or not? The reason for the strange starting tag is that it is for a wordpress theme. Cheers in advance! jQuery(document).ready(function($) { $(".sidebar ol#navigation li.work a")...

Speed test between Javascript frameworks reliable?

This is pretty interesting, this site runs a speed test and compares all of these; PureDom jQuery 1.2.6 jQuery 1.3.2 Prototype 1.6.0.3 MooTools 1.2.2 qooxdoo 0.8.2 Dojo 1.2.3 Dojo 1.3.1 YUI 2.7.0 Javascript frameworks Speed Comparison Bases on this it seems like the newest jquery version is almost 2x faster then the older version, h...

Can it be disadvantageous to store jQuery objects in a variable?

I've just recently asked the folloiwng question with regard to jQuery chaning: http://stackoverflow.com/questions/1286829/is-there-a-preferred-way-of-formatting-jquery-chains-to-make-them-more-readable A number of people replied with the suggestion that maybe I reduced the amount of chaining within the statement, and instead stored obj...

jQuery UI - Performance penalty on multiple draggable?

Hi there, I have a question regarding performance. Is there a performance penalty when I call draggable (with all the same options) on already draggable Elements? I have Speech Bubbles which are draggable on a drag container (say, a comic). These Bubbles are also droppables because you can chose which kind of Bubble (speaking, angry, t...

More efficient jQuery

I have the following code that controls the presentation of an interdependent group. The current code works, I'm wondering if there is a way to streamline the code so less is duplicated. $('div.locUpd').hide(); $('div.locDel').hide(); $('div.addLocation').hide(); $('a.edit').click(function(){ $(this).parent().nextAll('div.locUpd'...

JQuery performance with many plugins?

I've been using JQuery for a while, but primarily without plugins - I'm now looking to do a project which could take advantage of a bunch of plugins - Are there any performance penalty to using a lot of plugins in a project - Lets say something in the order of 10-20 plugins? And how will the performance be affected if JQuery and it's pl...

Why is this jQuery selector so slow?

Based on testing a page with ~220 elements, of which ~200 are checkbox elements, and each element has to query an array with ~200 items, I was surprised to discover that input selector: $("input[id$='" + code + "']").each(function() { //... is approximately 4-5 times faster than $("input:checkbox[id$='" + code + "']").each(function(...

Performance of jQuery selector with context

I was reading this article by Brandon Aaron here, about how jquery context may help. So i thought of doing a test of my own. So this is what I did. Created a DIV with id="context" and nested DIV with id="holder" in "#context" created earlier. Created a nested DIVs of depth 18 and append <div id="context"><div id="holder"></div></div> t...

jQuery UI Datepicker Slow During Typing

I've heard all these great experiences of how great and elegant jQuery is, but I'm 0 for 2 trying to implement jQuery controls in real world projects due to poor performance. I am running into a similar problem as Richard this time. The jQuery UI DatePicker failed User Acceptance Testing in an ASP.NET application I'm working on because...