ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

Flattr This Image on Footer not Displaying #20

Closed thobach closed 11 years ago

thobach commented 11 years ago

When opening http://responsejs.com/ in Chrome on OSX I don't see the Flattr button, only the text link. Is the script broken? Also I don't get image replacement working:

<script src="/js/jquery-1.9.1.min.js"></script>
<script src="/js/response.min.js"></script>
<script>
    Response.create({
      prop: "width", prefix: "min-width- r src", breakpoints: [1281,1025,961,641,481,320,0], lazy: true
    });
</script>

<img src="http://lorempixel.com/640/200/sports/" data-min-width-641="/img/header2_IMG_2343.jpg" style="width: 100%;" alt="U-Bahn Unterf&uuml;hrung in M&uuml;nchen" />

Do you have any ideas? The network tab in Chrome tells me that an image under "/null" is requested by response.min.js, but not retrieved.

ryanve commented 11 years ago

Currently responsejs.com intentionally does not load the script. I decided the text link was sufficient, and I didn't need the script elsewhere on the page. I left the data attributes in place in case I decided to change it back.

If the script URIs are correct in your example, then it looks like it should work. Are there any errors in the console? Which version of response.js are you using? Does it work if you use an absolute URI for the image?