Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo page broken #12

Open
ghost opened this issue Jul 18, 2013 · 1 comment
Open

Demo page broken #12

ghost opened this issue Jul 18, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 18, 2013

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.

@zachlipton
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant