ryanve / response.js

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

Can't read data attribute until DOM is loaded #3

Closed ryanve closed 12 years ago

ryanve commented 12 years ago

In version 0.2.8 and earlier, if you were loading Response in your head using normal external script tags and using the body tag method to setup your attributes, then Response would be attempting to read the data-responsejs attribute before it was available in the DOM. This was fixed in version 0.2.9 by binding the reading of the attribute to the ready event.