How would this work with single page apps? On Tuesday, December 31, 2013 4:13:16 PM UTC-8, Jake Scott wrote: > > Hey guys, I'd like to share a pet project I created over break for > Express/Koa web servers to eliminate the need for CSS sprite sheets, which > are generally a pain in the butt to update and maintain. You can see my > project, called *wan*, in action > here<http://www.youtube.com/watch?v=yZwwAi0MHzE&feature=youtu.be> > . > > And the github here <https://github.com/mako-taco/wan> > > The basic premise is this: > Wan sends the server a list of every image path that the page is > requesting, and the server streams back the images contents, base64 encoded > and gzipped. The client streams in the response, setting the src attribute > of images as it gets their data. Wan lets you have 100% control over the > order your images load in, as well as how many requests you make to your > server for images. > > Wan also takes advantage of local storage to cache individual images so > that it doesn't have to request them again, but failing that, can do just > fine by caching the ajax request. > > Please let me know what you guys think and any improvements you might want > to add in. If reception for the image thing is okay, then I will build out > wan into a full fledged asset pipeline for Koa, condensing scripts and css > as well. > > Github: https://github.com/mako-taco/wan >
-- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
