mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Chrome warning: "Resource interpreted as Image but transferred with MIME type application/javascript" #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Open Chrome debugger ctrl+shift+j
2. Load a page that uses the mvc-mini-profiler 
(my page has the following line: 
<%:MvcMiniProfiler.MiniProfiler.RenderIncludes() %>)

Using Chrome version 12.0.742.122, Windows 7, I get a warning:

"Resource interpreted as Image but transferred with MIME type 
application/javascript." 

mini-profiler-includes.js?v=1.4.4195.30054

Do other people get this too or is it something I have done wrong?

Original issue reported on code.google.com by bobbym...@gmail.com on 26 Jul 2011 at 12:34

GoogleCodeExporter commented 8 years ago
I have the same warnings in console in Chrome. Both warnings are for files 
loaded using the yepnope library. Files are returned with proper 
application/javascript MIME type. Looks like an issue with the way yepnope is 
loading scripts.

Tested in Chrome: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 
(KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30

Original comment by jozef.izso on 28 Jul 2011 at 8:29

GoogleCodeExporter commented 8 years ago
I've just removed the dependency on yepnope by checking the few things we need 
to directly in the page...this means one less HTTP request and no MIME type 
errors in webkit.

This will be in the next (TBD) NuGet package.

Original comment by nrcraver on 1 Aug 2011 at 5:24