Reference 404 error for a request for the jquery.min.map file

前端 未结 1 902
一整个雨季
一整个雨季 2021-01-15 14:45

Out of now where I\'m getting this 404 error when browser is requesting the jquery.min.map.

Funny this is that I\'ve never added this file to my solution.

C

1条回答
  •  离开以前
    2021-01-15 14:53

    Source maps are like favicons, a thing that will be loaded by browsers in some circumstances.

    Typically, javascript are minified on production servers and debugging javascript on them is difficult.

    Source maps are the original versions of minified javascript. It's up to the developers to include them or not on their websites.

    In Chrome, you have to activate this functionality for the browser to attempt to download the original non-minified version of a minified script. It is then easier to debug client-side.

    Basically, you can't get rid of this error besides providing source maps.

    Anyways, see: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

    0 讨论(0)
提交回复
热议问题