keithclark/selectivizr — Issue #29: Allow use of different-domain CSS with XDomainRequest
Author: adammessinger
Created: 2012-02-28 22:04:11+00:00
State: open

I can't use Selectivizr on my current project because the CSS files are hosted on a subdomain. The script could check to see if a stylesheet's href is on the same domain, and if not use [XDomainRequest](http://msdn.microsoft.com/en-us/library/cc288060%28VS.85%29.aspx) instead of XMLHttpRequest.

I believe this only works on IE8 or higher, and requires the `Access-Control-Allow-Origin` header on the server with the CSS file be set to permit the request. Those seem like reasonable implementation trade-offs for this functionality, however.