A file .map
allows mapping a minimized javascript file (minified) to the original file. Then we can debug a web page without needing to change the system on the server, ie:
- No more gambit to put the original jQuery in "development" mode and jQuery min in production mode
- The code executed in the browser remains the minified, but you can see the equivalent orignal stretch so that you can understand what’s happening
There are other details, advantages and applications that can be read in the article Introduction to Javascript Source Maps.
As for Chrome, it tries to download the map whenever it finds a reference in the javascript file. Example:
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
To avoid errors, remove the snippet from the Javascript file or disable this feature from the browser via the option Enable Source Maps
, as shown below (taken from the cited article):
This only happens in Google Chrome?
– Maniero