GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
I was testing respond.js on my webpage and found that it does nothing on IE7.
I was able to narrow the issue.
My page uses tag and all other tags have relative URLs.
The problem is in the ripCSS() method - it does not make any requests.
(!/^([a-zA-Z:]*\/\/)/.test( href ) && !base) || href.replace( RegExp.$1, "" ).split( "/" ) === win.location.host
The thing is that IE8 has full url in href variable and IE7 has only the relative URL i put there:
I got this problem too!
How did you solve this?
The dirty solution is here:
It works but it creates extra requests.
Maybe you can turn it into a beauty.
This works for me:
Check your actual base tag. I spent a long time this afternoon chasing this issue with the latest minified version only to find I was missing a trailing / on my base tag
I spend a lot of time today too to find this was a base tag issue. I just fixed it by making the paths to the stylesheets absolute.
Maybe we can update the Support & Caveats section of the README to warn people about it for now? Untill it's possibly fixed?
I have found after much playing, that setting the Base tag on the Server-side is a handy fix for several issues like this.
I use this in PHP -
<base href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/">
If you are .net, ruby etc I am sure there is an equivalent.
I've tried several things with the basetag, but in IE7 I can't get it working, are you sure it works for you in IE7?