Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  15] [ 6]  / answers: 1 / hits: 8491  / 10 Years ago, fri, may 9, 2014, 12:00:00

I included Qtip2 on my site and used the following snippets while the files are hosted on my own server as mentioned here:



<!-- jQuery FIRST i.e. before qTip (and all other scripts too usually) -->
<script type=text/javascript src=/scripts/jquery.min.js></script>

<!-- Include either the minifed or production version, NOT both!! -->
<script type=text/javascript src=/scripts/jquery.qtip.js></script>


Though hosted on the same server as the website the script loads the following additional file from the CDN of Qtip2:



https://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0/jquery.qtip.min.map



This slows down my side extremely:
enter



I could not find any information about this. Any idea how to avoid (if not necessary) or replace and host on my own server?


More From » jquery

 Answers
5

The *.map file is a source map. It contains informations like function positions of the non-minified source code of Qtip2. Notice that I used the minified version of it on my webpage.



Source maps help to develop with a postprocessed (e.g. minified) source code without losing the ability to look into the code, for example when errors occur.



The chrome debugger as you can see on the image in my question above downloads it by default. After disabling that function in the debugger settings the file won't be downloaded any longer.



Take a look at this video for a short information or this documentation from Google.



Firefox offers the same feature as you can see here.


[#45417] Thursday, May 8, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kinsleyashlynnh

Total Points: 64
Total Questions: 119
Total Answers: 98

Location: Burundi
Member since Sat, Aug 21, 2021
3 Years ago
;