Maybe because you monitored the HTTP traffic after viewing the clockThere is many requests indeed, but it's rather normal - Steve has put online
first? In my case there were 75 requests in one minute.
various weird stuff which needs to be loaded :-)
As for the binary clock, my Firefox sends the following commands:
GET /stephen.joung/binclock_8.jpg HTTP/1.1
GET /stephen.joung/binclock_4.jpg HTTP/1.1
GET /stephen.joung/binclock_2.jpg HTTP/1.1
GET /stephen.joung/binclock_1.jpg HTTP/1.1
These commands are sent only once. No more.
Steve, consider setting the proper response headers esp those relatedExactly.
to caching when serving your images. Consult your web servers'
documentation for more details. Google for 'cache response header' or
something along those lines to get started.
In fact, your server isn't transmitting any cache-control directives,
therefore it's up to the browser to use (or not) any caching mechanism
(that's why my Fx is not requesting any data twice, but some other UA could
do so).
Anyway - it's not related to JavaScript, but rather to your http
implementation :-)
Regards,
Mateusz Viste