Bootstrap.css.map 404 Not Found

Source: Internet
Author: User
Bootstrap.css.map What is the use of this file. How to use it.
.  ├──bootstrap.css  ├──bootstrap.css.map  ├──bootstrap.min.css  ├──bootstrap-theme.css  ├── Bootstrap-theme.css.map  └──bootstrap-theme.min.css    0 directories, 6 files

Let me first say what the source map file is. The source map file is a JS file compression, the file's variable name to replace the corresponding, variable location, such as meta information data files, generally such files and min.js main files in the same directory. For example, after compressing the original variable is a map, after compression through the variable replacement rules may be replaced by a, then the source map file will record this mapping information, the advantage is that, in debugging, if there are some JS error, Then the browser will be resolved by parsing the map file to merge the compressed JS, so that developers can use uncompressed code before debugging, which will bring us great convenience. And this kind of restore debugging function, only Chorme has, so there will be the title said problem, I introduce jquery-1.10.2.min.js, under Firefox or other browsers is good, under chorme will be unable to find the error jquery-1.10.2.min.map file, 404, is because of the above, jquery will detect whether the browser support sour Ce map function, if support, then go to download the source map file, and this time if you are quoting the official website of the min.js that no problem, it will go to its own directory to find the source map file, And if the Jquery.min.js file on your server and the server does not have source map, it will be an error, so three solutions: one, quote official website file Two, the source map file download down to the server (recommended) three, The Chorme file tool--> Developer Tool--> settings-->enable source maps hook out, remove this hook, jquery will not download the source map file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.