Live data from Hacker News

Impressive html5/css3 clock; no Flash.

aprilzero.com

31–40 of 89 posts

Re: Impressive html5/css3 clock; no Flash.

#31
post #21
post #5

2.3MB of data for a one page site! While its pretty that is crazy big!

I wouldn't say it's crazy big. Bigger than 99% of one page sites? Sure. I've got a 50mbps connection and even with a far slower one, this would only take a few seconds to load.

It took me a couple of minutes on a 3G cellular connection.

It was worth the wait, for sure, but due to the way it rendered, I felt like I had to watch the whole thing because I didn't want to miss something neat.

It could (and should) definitely be optimized a lot, but as a proof of concept, I'm not going to quibble over file size, even if I'm negatively impacted.

Re: Impressive html5/css3 clock; no Flash.

#37

Use your browser's zoom tool to see it up close. Most of the textures are higher-res than needed. It looks pretty good even zoomed way in.

One of the stamps at the bottom means "Retina Display support". That's probably why the texture are so high-res.

Re: Impressive html5/css3 clock; no Flash.

#38
post #27
post #5

2.3MB of data for a one page site! While its pretty that is crazy big!

this can be greatly improved (losslessly) using http://punypng.com / http://www.smushit.com/ysmush.it/ / downloadable PNG recompressing software. I tried it on several files on this site and some decreased in size by more than half.

is that better than pngcrush? http://pmt.sourceforge.net/pngcrush/

Re: Impressive html5/css3 clock; no Flash.

#40
It seems like if you wait long enough the gears start moving. On Chrome I just saw the closed aperture for several minutes and gave up, on FF I saw the arm and pendulum moving but that's all, 'til I came back several minutes later and the gears were moving. Haven't been able to get that "gear moving" effect again tho. I think file-size/load-time is actually a problem in this case, even as an art piece, as it's taking so long to load I'm not even seeing the art.

A couple other things: the apple clock is using javascript as well, not just css3 (tho they could if they tried). This one... I didn't dig far enough to see if it's used anywhere in the clock but the hands and pendulum are just css. Remember kids, html + css + javascript != "CSS3" :)

Further, HTML5 is nice but it's being used pointlessly here: This is an "article?" HTML5 to add semantic meaning is good, using it for no reason... I don't see the point. Overall, KUDOS to the designer/developer! Extremely impressive regardless of any of this.

Post reply on HN