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

前端 未结 15 2003
旧巷少年郎
旧巷少年郎 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:23

    It is because of the period in the file name. It is stupid, but anytime there is a period in the js file name you will get this error, and I have come across situations where it will actually prevent the js file from loading.

提交回复
热议问题