Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Stops on non-200 header #153

ghost opened this Issue · 2 comments

2 participants


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 which 301 redirects to, 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

@jefflembeck jefflembeck referenced this issue from a commit
@jefflembeck jefflembeck Fix #153 d746969

I don't think this should have been closed. The chain is broken so all subsequent styles also won't load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.