I'm using a variation of respond.js on a website. I need it for the likes of IE6-IE8. Here's the source code. http://kl1p.com/HGv/2
I didn't have any trouble with it when I was running it on my web server. The problem is, for this project I have my hands tied and I cannot use a web server of any sort (long story).
Is there any way to make this code work WITHOUT a web server? I realise this:
Due to security restrictions, some browsers may not allow this script to work on
file:// urls (because it uses xmlHttpRequest). Run it on a web server.
is an implication of why it wouldn't be working. Is there any other way to get this to work?
One thing I did notice is that it works in chrome without a server. Definitely not in IE8 though.
This might be an impossible task, but it's worth asking at least anyway.
I've come to a compromise. I'm using the 'Cross Domain Patch' method as included here https://github.com/scottjehl/Respond