npr / responsiveiframe

Responsive IFrames

Home Page:http://npr.github.com/responsiveiframe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo page broken

opened this issue · comments

http://npr.github.io/responsiveiframe/demo1

Resource interpreted as Script but transferred with MIME type text/plain: "https://raw.github.com/npr/responsiveiframe/master/dist/jquery.responsiveiframe.js". demo1:23
Refused to execute script from 'http://raw.github.com/npr/responsiveiframe/master/dist/jquery.responsiveiframe.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. demo1:1
Uncaught TypeError: Object [object Object] has no method 'responsiveIframe' demo1:37
Resource interpreted as Script but transferred with MIME type text/plain: "https://raw.github.com/npr/responsiveiframe/master/dist/jquery.responsiveiframe.js". iframe1.html:23
Refused to execute script from 'https://raw.github.com/npr/responsiveiframe/master/dist/jquery.responsiveiframe.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. iframe1.html:1
Uncaught ReferenceError: responsiveIframe is not defined iframe1.html:28 

Happens in latest Chrome. Is due to the file being served as plain text and chrome not wanting to execute it. See: http://geekdave.com/2013/06/19/linking-raw-github-files-from-jsfiddle/

You should host the js locally in gh-pages branch.

I just noticed this as well. Works fine in Firefox, but not in Chrome due to https://code.google.com/p/chromium/issues/detail?id=180007. This has broken a number of github js demos.