Debug message “Resource interpreted as other but transferred with MIME type application/javascript”

前端 未结 15 1981
旧巷少年郎
旧巷少年郎 2020-11-29 01:50

OK, I understand what the messages means, but I\'m really not sure what\'s causing it. I\'m using Safari and the Web Inspector on Mac OS X, by the way.

I\'v

15条回答
  •  独厮守ぢ
    2020-11-29 02:22

    An image with an empty "src" attribute generates this error under Windows-Chrome:

    
    

    ... whereas ...

    
    

    ... does not.

    I arrived here because my ajax resultset was returning "src" data which was empty yet the img was still being inserted into the page.

提交回复
热议问题