31 August 2007

use onmousedown instead of onclick

Joseph Smarr give great talk about javascript performance, recommend to watch it. I'm not big fan of optimization, but in web application, load time (performance) matter. It interesting he claim that better performance when using onmousedown instead of onclick. And combine to setTimeout trick, setTimeout(func, 0), I can feel the difference in his demo. He also mention some other tips to improve javascript performance, so, watch it :-)

Hey, A Pattern Library for Interaction Design -- they update their website contents
Post a Comment