Automattic / antiscroll

OS X Lion style cross-browser native scrolling on the web that gets out of the way.
1.07k stars 162 forks source link

Fixed script mime-type bug #62

Closed kumarharsh closed 11 years ago

kumarharsh commented 11 years ago

Fixed the demo at http://learnboost.github.io/antiscroll/ which was not working in (atleast) Chrome 27 due to this error:

Refused to execute script from 'https://raw.github.com/LearnBoost/antiscroll/master/antiscroll.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

kumarharsh commented 11 years ago

does not work.

Actually, the problem is that the page is linking to the script on raw.github.com, which serves it with a text/plain MIME type, and a X-Content-Type-Options: nosniff header, triggering the script to NOT be executed in Chrome 27.

I'll keep looking into the problem...

kumarharsh commented 11 years ago

Found the issue (its a general thing, being implemented by all the browsers soon)

https://code.google.com/p/chromium/issues/detail?id=180007