7 ms·
Getting an error on that page in Chrome. Refused to execute script from 'https://rawgithub.com/dmauro/Keypress/master/keypress.js' because its MIME type ('
by double051 12y ago
Getting an error on that page in Chrome.
Refused to execute script from 'https://rawgithub.com/dmauro/Keypress/master/keypress.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
EDIT: It's because Keypress is using rawgit.com instead of cdn.rawgit.com to host the actual keypress.js script.
Details here - http://rawgit.com/dmauro/Keypress/master/keypress.js http://rawgit.com/dmauro/Keypress/master/keypress.js
Working script source - http://cdn.rawgit.com/dmauro/Keypress/master/keypress.js http://cdn.rawgit.com/dmauro/Keypress/master/keypress.js
- dcre 12y agoRawGit is refusing to send the page because you're not supposed to use it for production sites without using the cdn.rawgit.com link.
- pmontra 12y agoTo be more precise: by looking at the response in Firebug's Net panel I see <h1>Blacklisted for abuse</h1> <p> This request has been blacklisted for sending too much traffic to <code>rawgit.com</code>. Please contact the owner of the site that sent you here and ask them to use <code>cdn.rawgit.com</code> instead, which has no traffic limit. </p> Nevertheless I wonder if this will work when Firefox's search as you type is enabled. I guess the browser should eat up all those events, but maybe I'm wrong. Can't check it because of the blacklisted script and no time to write my own test now.
- evilpie 12y agoSeems like they also deliver this with an HTTP 200 status. So Firefox actually tries to parse the error page as JavaScript.