The Countdown jQuery plug-in
Recently i discovered a jQuery plug-in (by the name of Countdown ) that allows you to count down/count up from a given period of time, and was quite surprised as to how simple it was to implement, in comparison to standard procedural, DOM based alternatives.
Using it reminded me of PHPs date() function, as its arguments are very similar - 'dHM' for day, hour, minutes. I remember learning how to use the HTML DOM and the length of time it would take to create something similar, and this plug-in reminded me of how easy client side development can be (though not always!).
After i used Countdown i got to thinking about other time based plug-ins on the web. I came across the jQuery idleTimer developed by Paul Irish – this useful peace of kit can help in pre loading assets; something that seems to be a rather popular topic in web site optimisation these days. I undertook some research into the topic, and found some interesting things in this SitePoint article
This line of thinking can be applied to home pages in all websites, as this page often needs to have the quickest load time. The Countdown plug-in is worth a look if youre looking for simple time based functionality, and website optimisation techniques help usability.