javascript - Testing for media queries in yepnope.js - false positive or...? -
i using code test media query back upwards want load polyfill e.g. ie8.
yepnope({ test : modernizr.mq('(only all)'), nope : ['scripts/respond.js'] }); it works (= respond.js gets loaded in oder ie), i've discovered respond.js gets loaded in safari.
after having read the docs believe respond.js loaded because there kind of media queries safari doesn't support. true? how can solve issue?
the problem isn't safari doesn't back upwards media queries, (only all) not valid media query. there should no parentheses around only keyword or media type all:
yepnope({ test : modernizr.mq('only all'), nope : ['scripts/respond.js'] }); javascript media-queries modernizr yepnope browser-feature-detection
No comments:
Post a Comment