Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh cool. Yes, I must have misread that compression stat.

We don't have image URLs specified in stylesheets at all, but rather we use JavaScript to build up the DOM and set the src of all img tags (or background-image style properties, or canvas drawing, etc).

That's really interesting. Since that's not explained in the article you had linked to, I'm assuming Cappuccino did this before switching to data URIs?

Thanks for taking the time to explain this approach more in depth.



Yeah, you should read a bit about Cappuccino, it makes drastically different decisions about how an application should be built on top of the browser, but as a result it gets to do complex things like this image spriting extremely simply.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: