Home > Web Front-end > JS Tutorial > jquery.min.map 404 (Not Found) error causes and solutions

jquery.min.map 404 (Not Found) error causes and solutions

伊谢尔伦
Release: 2016-11-22 11:43:42
Original
1567 people have browsed it

After the Chrome update, jquery.min.map 404 (Not Found) message appeared

What exactly is this? After checking, I got the following information

JQuery official explanation

Excerpt the content

From jQuery 1.9.0 version, there will be @ sourceMappingURL=jquery.min.map in the original code

What is Source map

Simple Say, Source map is an information file that stores location information. In other words, each position of the converted code corresponds to the position before conversion.

With it, when an error occurs, the debugging tool will directly display the original code instead of the converted code. This undoubtedly brings great convenience to development.

The reason why jquery.min.map 404

After the update, Chrome automatically turned on the option of Enable source maps but you did not put the Source map, so the file could not be found.

Solution

Solution 1.

Turn Developer Tools ->Set Enable source maps off

Solution 2.

Download the same version of source maps in the same directory as jquery.js

source maps will be the same as jquery Same location

Jquery location http://code.jquery.com/jquery-1.10.2.min.js

source maps location http://code.jquery.com/jquery-1.10.2.min.map


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template