Tag Archives: Resource mapping error

Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map

Browser Jquery1.9.1 min.js newspaper script error no jquery.min.map file
 
I recently encountered this problem when Browsing personal websites
Let me first say what a Source map file is.
Source map file is after js file is compressed, the variable name of the file replaces the corresponding, variable location and other metadata data file, generally this file and min.js main file are placed in the same directory.
Such as the original variable is the map after compression, compressed by variable substitution rules may be replaced with a, then the source map file will keep a record of the mapping information, so that the benefits of that is to say, at the time of debugging, if there is some JS error, then the browser will by parsing the map file to merge compressed JS, the developers can use the code to debug, uncompressed, this will bring us a lot of convenience!
Solutions:
Remove the sentence “// @sourcemappingURL =jquery.min.map”