ryanve / response.js

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

Response Error Message #49

Open GinaRare opened 10 years ago

GinaRare commented 10 years ago

When I inspect the site I am working on, I get an error message that says: 'response.js aborted due to missing dependency '

I have been having trouble getting response.js to work on this site and am coming up against a brick wall - any help would be great. (I want it to allow IE8 to see my media queries - which it is not currently)

http://www.ethosep.co.uk.gridhosted.co.uk/environment/

ryanve commented 10 years ago

That error comes from this check. jQuery was not found when response.js ran. jQuery (or a compatible lib) must exist in the global scope at the time that response.js runs. Does that explain it?

ryanve commented 10 years ago

I advise against polyfilling media queries because doing so makes your media queries unreliable. Instead use mobile-first media queries such that IE8 gets the unenhanced version. IE8 is obsolete.

GinaRare commented 10 years ago

I am not sure what you mean by polyfilling media queries - can you explain? Also, if I do this will it solve my problem?

GinaRare commented 10 years ago

I have actually looked up polyfilling and it seems that response.js uses it. So I am a little confused with your advice, you are telling me not to use it when your jQuery file is forcing me to. I need a fixable solution to get this working.

ryanve commented 10 years ago

response.js is not a polyfill and does not use any. You seem confused with respond. I mentioned polyfills because your page was using css3-mediaqueries to polyfill media queries. Polyfill and shim are synonyms.