技术标签: jQuery 404 sourcemaps jquery
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.
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
Instead of getting the files, you can alternatively disable JavaScript source maps completely for now, in your settings. This is a fine choice if you never plan on debugging JavaScript on this page. Use the cog icon in the bottom right of the DevTools, to open settings, then:
Or
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 */
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)
更详细的中文介绍请参考阮一峰博客文章: http://www.ruanyifeng.com/blog/2013/01/javascript_source_map.html#安装python的包管理工具—pipsudo apt-get install python-pip libglib2.0-dev#使用pip安装bluepysudo pip install bluepy
作为智能制造发展的重要基石,边缘计算、云原生、分布式云也正在迅猛发展,采用热度不断提高、技术日趋成熟、应用场景日益丰富,成为推动数字经济发展的重要引擎。本篇文章就将带你走进智能制造趋势下的云边协同与工业互联网。...
问题描述今天在使用Numpy中的矩阵做相减操作时,出现了一些本应为负值的位置自动转换为了正值,观察发现转换后的正值为原本的负值加上256得到,具体情况如下:正常情况矩阵相减样例如下>>> import numpy as np>>> arr = np.array([98,100,103,161,192,210])>>> brr = np.arra...
电脑自带的笔记本编辑器编写程序不显示行号,而Notepad软件可以显示行号,方便于将来调试程序的错误。在浏览器中输入以下Notepad++网址https://notepad-plus-plus.org/鉴于该网址有时不能正常打开,以下是方案二Notepad++外网下载 地址如下点击Downlooad下载,双击.exe文件运行安装即可。 双击.exe文件运行,启动安装点“OK”点“我接受”建议修改安装目录:D:\ 点击“下一步”,再“下一步”,点击“完成”安装成功!安装完毕之后,为了使用方便,可以做一个简单
编译FFmpeg静态库并搭建Android Studio的FFmpeg环境但凡需要做音视频处理的都离不开FFmpeg的支持,它的强大地位目前无人能动摇,各大视频软件、直播平台等等全都是基于FFmpeg来实现的。要在Android项目中集成FFmpeg,需要使用FFmpeg的静/动态库,而其静/动态库的打包需要在Linux系统中完成,所以我们至少需要一台Linux内核的虚拟机。今天以打包静态库为...
1、cvLoadImage:将图像文件加载至内存;2、cvNamedWindow:在屏幕上创建一个窗口;3、cvShowImage:在一个已创建好的窗口中显示图像;4、cvWaitKey:使程序暂停,等待用户触发一个按键操作;5、cvReleaseImage:释放图像文件所分配的内存;6、cvDestroyWindow:销毁显示图像文件的窗口;7、cvCreateFileC
原文地址:http://www.bkjia.com/yjs/1010813.html Spark 批量写数据入HBase,spark数据入hbase 介绍 工作中常常会遇到这种情形,需要将hdfs中的大批量数据导入HBase。本文使用Spark+HBase的方式...
LinkedHashMap是什么LinkedHashMap是基于哈希表的Map接口的非同步实现LinkedHashMap是HashMap的子类LinkedHashMap是有序的LinkedHashMap中元素的key是唯一的、value值可重复LinkedHashMap允许null键和null值LinkedHashMap的有序性LinkedHashMap底层使用哈希表与...
1、 eclipse下启动tomcat时报端口冲突 解决方式一: 运行cmd,输入netstat -ano 即可查看所有链接器的PID; 查看PID为tomcat启动端口的则杀掉(若没有PID,则选择“查看”——选择列 方式二: 在eclipse中对痛殴摩擦他做出修改: 修改conf/server.xml中的80为其他端口 2、eclipse抛出异常:...
本文主要介绍了SD-WAN在FortiOS 6.0中的功能。 文章SD-WAN规则中的应用程序控制设置您可以在SD-WAN规则中配置应用程序控制和应用程序控制组。 在SD-WAN规则中配置应用程序控制 - GUI: 1.转到网络> SD-WAN规则。 2.选择“新建”或“编辑现有规则”。 3.在“目标”部分的“目标类型”字段中,选择“Internet服务”。 4.在Sele...
文章目录(1)Javabean(2)entity(3)VO、POJO、PO、DTO、DO(4)BO、DAO(1)Javabean 为什么先说javabean呢?因为最开始学java web的时候,很多人都是从JSP学起的,从而开始认识 这种特殊的类:只包含私有属性,和set、get方法的类。而这种类,就是本篇所讲的重点。ps:博主会尽量减少概念性的话语,多用白话文来解释,篇幅可能较长,但...