W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] srcset javascript implementation (Respondu)

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 21 May 2012 08:59:29 +0200
Message-ID: <4FB9E7D1.1000204@gmx.de>
To: David Clements <huperekchuno@googlemail.com>
Cc: whatwg@whatwg.org
On 2012-05-21 04:21, David Clements wrote:
> Hi guys,
>
> Just to let you all know, I've written a javascript implementation of
> srcset using a framework for responsive images (which I also wrote)
> called Respondu (I'm open to new name suggestions), I'd love it if someone
> could check that I've implemented srcset right.
>
> Respondu manages to process the DOM without allowing any assets (contained
> in the body) to load, it also gracefully degrades for non-js
> browsers and is fairly unintrusive (it simply wraps the contents of the
> body tags).
>
> Check out the github page (feedback, pull requests, lunch money etc.
> welcome)
>
> https://github.com/davidmarkclements/Respondu
> ...

<https://github.com/davidmarkclements/Respondu/blob/master/R.js#L243>

This looks like you are splitting the attribute value by ","?

Best regards, Julian
Received on Monday, 21 May 2012 07:00:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT