Qtip2 loads a "jquery.qtip.min.map" from internet and slows down site

Sebastian Barth picture Sebastian Barth · May 9, 2014 · Viewed 7.6k times · Source

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 image description here

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

Answer

ovinophile picture ovinophile · Jul 31, 2014

The final line of the Qtip2 script is a line lke this:

//# sourceMappingURL=http://cdnjs.cloudflare.com/.../jquery.qtip.min.map

Unfortunately the URL currently returns a 404. If you're hosting Qtip2 yourself, you should be able to find and remove that line at the end of the script. Otherwise, don't worry too much because the .map file is only requested when Developer Tools is open. Normal visitors won't download it.

Here's more info on .map files: jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)