Javascript, keep it simple

Peter-Paul Koch, wrote the article I’ve been meaning to write for ages Javascript, keep it simple, and of course did a much better job than I could’ve done.

People seem very keen on over-engineering client-side javascript, leading to slow pages, download times are getting a lot better, but instead of having to wait on downloads, we’re waiting on scripts to finish doing simple things. If a script takes longer than 1/2 second on a slow machine, don’t put it on your page - break it up with setTimeout or something, please.