dyoo / WeScheme

29 stars 16 forks source link

Resource interpreted as Script but transferred with MIME type text/plain. #44

Closed dyoo closed 12 years ago

dyoo commented 12 years ago

Every interaction raises this error in Chrome. We should set the right mime type for the compiler. I believe it should be text/javascript to silence this warning.

dyoo commented 12 years ago

According to http://www.rfc-editor.org/rfc/rfc4329.txt, we should be using application/javascript, but there are comments in http://stackoverflow.com/questions/189850/what-is-the-javascript-mime-type-what-belongs-in-the-type-attribute-of-a-script that this breaks on IE. Argh. We'll have to do some experiments.

dyoo commented 12 years ago

This should be fixed the next time we update the compiler link; I'm setting to text/javascript and that appears to suppress the error message.

dyoo commented 12 years ago

Closing issue