This script is designed to download a raw copy of the CSS and include media-query specific styling. However this script does not support redirect headers (such as 301). If the page being loaded is http://www.domain.com/css/style.css which 301 redirects to http://domain.com/css/style.css, while the browser will show the css file correctly, this script will die silently.
Some help for the developer would be adding a console message:
window.console && console.log && console.log("Incorrect header supplied. Expected 200, \"" + req.status + "\" supplied"); return;
on line 287.
At least it becomes easier to track the error down.
Alternatively, follow 301 and 302 codes for 4 or 5 hops?
Noting this in the README
I don't think this should have been closed. The chain is broken so all subsequent styles also won't load.
fixes #153, ajax handles errors and allows continuing request queue