{"id":355,"date":"2012-09-18T23:26:40","date_gmt":"2012-09-18T23:26:40","guid":{"rendered":"http:\/\/www.w3.org\/community\/respimg\/?p=355"},"modified":"2012-09-18T23:30:00","modified_gmt":"2012-09-18T23:30:00","slug":"respondu-0-0-4-up-to-date-with-proposed-picture-sytax","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/respimg\/2012\/09\/18\/respondu-0-0-4-up-to-date-with-proposed-picture-sytax\/","title":{"rendered":"Respondu 0.0.4 &#8211; Up to date with proposed picture sytax"},"content":{"rendered":"<p>Hey Everyone<\/p>\n<p>Just to let you all know, the Respondu framework has undergone some changes to make it cleaner, simpler and more robust.<\/p>\n<p><a href=\"https:\/\/github.com\/davidmarkclements\/Respondu\" target=\"_blank\" rel=\"nofollow\">https:\/\/github.com\/davidmarkclements\/Respondu<\/a><\/p>\n<p><a href=\"http:\/\/respondu.davidmarkclements.com\/\" target=\"_blank\" rel=\"nofollow\">http:\/\/respondu.davidmarkclements.com<\/a><\/p>\n<p>Respondu uses a different method to Scott Jehl&#8217;s polyfill, it piggy backs on the noscript idea using a hack to extract the noscript content cross-browser. This means you can use the exact picture syntax and simply precursor it with a call to Respondu and wrap it with modified noscript tags like so:<\/p>\n<blockquote><p>&lt;h1&gt; Picture Element Example &lt;\/h1&gt;<br \/>\n&lt;script&gt;Respondu(&#8216;picture&#8217;);&lt;\/script&gt;<br \/>\n&lt;noscript&gt;<br \/>\n&lt;picture id=thepic&gt;<br \/>\n&lt;source srcset=&#8221;images\/photo.small.jpg 1x, images\/photo.small.jpg 2x&#8221;&gt;<br \/>\n&lt;source media=&#8221;(min-width:320px)&#8221; srcset=&#8221;images\/photo.medium.jpg 1x, images\/photo.medium@2x.jpg 2x&#8221;&gt;<br \/>\n&lt;source media=&#8221;(min-width:640px)&#8221; srcset=&#8221;images\/photo.large.jpg 1x, images\/photo.large@2x.jpg 2x&#8221;&gt;<br \/>\n&lt;source media=&#8221;(min-width:1280px)&#8221; srcset=&#8221;images\/photo.xlarge.jpg 1x, images\/photo.xlarge@2x.jpg 2x&#8221;&gt;<br \/>\n&lt;img src=&#8221;images\/photo.jpg&#8221; alt=&#8221;Alt tag describing the image represented&#8221;&gt;<br \/>\n&lt;\/picture&gt;<br \/>\n&lt;\/noscript&#045;&#045;&gt;<br \/>\n&lt;p&gt; Some content after the image &lt;\/p&gt;<\/p><\/blockquote>\n<p>Respondu supports the proposed the current form of the picture syntax with media and simplified (i.e. density only) srcset attributes. I can say that building this framework and using it in my projects, the new picture syntax is a pleasure compared to the img srcset syntax &#8211; if you take a look at the examples you&#8217;ll see what I mean. The picture syntax has a much nicer balance between vertical\u00a0 and horizontal text length.<\/p>\n<p>Thanks to all, exciting times ahead!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey Everyone Just to let you all know, the Respondu framework has undergone some changes to make it cleaner, simpler and more robust. https:\/\/github.com\/davidmarkclements\/Respondu http:\/\/respondu.davidmarkclements.com Respondu uses a different method to Scott Jehl&#8217;s polyfill, it piggy backs on the noscript &hellip; <a href=\"https:\/\/www.w3.org\/community\/respimg\/2012\/09\/18\/respondu-0-0-4-up-to-date-with-proposed-picture-sytax\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2198,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[1],"tags":[],"class_list":["post-355","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/users\/2198"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":7,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":361,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/355\/revisions\/361"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}