jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)
来源:互联网 发布:施工图网络字母缩写 编辑:程序博客网 时间:2024/05/02 00:30
creenshot
Where is this coming from?
If Chrome DevTools is reporting a 404 for a .map file (maybe jquery-1.10.2.min.map
, jquery.min.map
or jquery-2.0.3.min.map
, but can happen with anything) first thing to know is this is only requested when using the DevTools. Your users will not be hitting this 404.
Now you can fix this or disable the sourcemap functionality.
Fix: get the files
Next, it's an easy fix. Head to http://jquery.com/download/ and click the Download the map file link for your version, and you'll want the uncompressed file downloaded as well.
Having the map file in place allows you do debug your minified jQuery via the original sources, which will save a lot of time and frustration if you don't like dealing with variable names like a
and c
.
More about sourcemaps here: An Introduction to JavaScript Source Maps
2.
You can remove the 404 by removing the line
//@ sourceMappingURL=jquery-1.10.2.min.map
from the top part of your jQuery file.
The top part of the jQuery file will look like this.
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license//@ sourceMappingURL=jquery-1.10.2.min.map*/
Just change that to
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */
Purpose of a source map
Basically it's a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying and combining your JavaScript files, you generate a source map which holds information about your original files. When you query a certain line and column number in your generated JavaScript you can do a lookup in the source map which returns the original location. Developer tools (currently WebKit nightly builds, Google Chrome, or Firefox 23+) can parse the source map automatically and make it appear as though you're running unminified and uncombined files. (Read more on this here)
- jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)
- jquery.min.map is triggering a 404 (Not Found)
- 解决jquery-1.10.2.min.map 404 Not Found错误
- jquery.min.map 404 (Not Found)
- jquery-1.10.2.min.map 404 (Not Found)问题及解决
- jquery-1.10.2.min.map 404 (Not Found)问题及解决
- 导致jquery.min.map 404 (Not Found)错误的原因
- jQuery-1.9+.min.map 404 (Not Found) 错误,了解Source Map
- jquery.min.map 404 原因
- TypeError: a(...).live is not a function(jquery.unobtrusive-ajax.min.js 引入报错)
- jquery.easyui.min.js:ncaught ReferenceError: jQuery is not defined
- jQuery-$ is not a function
- jquery-ui.min.js:5 Uncaught TypeError: b.nodeName.toLowerCase is not a function
- jquery.min.js:2 Uncaught TypeError: $(...).DataTable is not a function
- jquery-1.10.2.min.map是什么,怎么用?
- 报错找不到jquery-1.10.2.min.map解决办法
- GET http://test01.com/jquery-1.9.1.min.js [HTTP/1.1 404 Not Found 3ms]
- jquery.min.map 404的解决办法
- 大家怎看中港冲突?
- 动态SQL
- Oracle 解除对SCOTT/TIGER用户的锁定。
- eclipse tomcat 的内存设置
- Unity 根据Transform、GameObject和Tag获取子对象集合
- jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)
- Linux下进程信息的深入分析
- Java学习的30个目标以及系统架构师推荐的书
- 【极客学院】点九在Android平台的运用开发,实现屏幕的完整适配
- 使用 SysRq 键安全重启挂起的 Linux
- GeoServer(2)--使用Eclipse安装GeoServer
- Sql Server排序规则(转)
- iOS - 获取文件MD5 :
- A new repo command ( 1.18) is available