javascript-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...

How well does JavaScript scale?

I was working on this carousel thing, using the iCarousel. It works pretty nicely with a few images, using MooTools. However when I added 70 pictures (around 30k each) it stopped working so nicely. Having spent some time poking around in the code of iCarousel it looked pretty decent and stable. So this got me thinking: is the problem inh...

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 ...

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...

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...

Javascript Performance Improvements

I'm currently fighting with Internet Explorer's (IE7) javascript performance issues, and struggling to find good information on improving performance, whether it be for a specific browser or in general. I think it will be helpful to all of us to have a link/tips/hints collection on improving JavaScript performance. Feel free to post wha...

What is the performance impact of having jquery functions not used?

I posted another question on a very similar topic, but turned out to be a little subjective. I am able to divided the question in two questions, one that I will explain below: In the following Code: <script type="text/javascript"> $(function() { $("#accordion").accordion(); $("#datepicker").datepicker(); $("#button").click(f...

JavaScript code improvement

I am not a huge JavaScript performance guru. Simply wondering, can I make the following code anymore compact? Not as in packing or compressing it, but in the way it's written. (function() { var jq = document.createElement('script'); var an = document.createElement('script'); var cm = document.createElement('script'); var...

Javascript Performance - Dom Reflow - Google Article

Could someone prove to me that the advice given here (copied below) regarding removing dom elements before altering them and then re-inserting them is ever quicker. By prove, I would like to see some figures. Its great that they research this but I think the article is very weak without including specifics as to what the 'problem' actu...

Javascript Running slow in IE

Hi, Javascript is running extremely slow on IE on some pages in our site. Profiling seems to show that the following methods are taking the most time: (Method, count, inclusive time, exclusive time) JScript - window script block 2,332 237.98 184.98 getDimensions 4 33 33 eh 213 32 32 extend 446 30 30 tt_HideSrcTagsRecurs ...

Coupling/chaining multiple asynchronously loaded JS scripts (JavaScript) .

Problem description: I'm working on a project to take an existing JavaScript script and modify it to support being loaded asynchronously. If you don't know about asynchronous or lazy loading scripts but want to learn more read this. One of the first things our main.js script does is call our web-server (3rd party to our clients) to ge...