Qtip2 downloads "jquery.qtip.min.map" from the Internet and slows down the site

I included Qtip2 on my website and used the following snippets while the files were hosted on my own server , as mentioned here :

<!-- jQuery FIRST ie 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> 

Although it is hosted on the same server as the website, the script loads the following additional file from the CDN from Qtip2 :

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

This slows down my side a lot: enter image description here

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

+7
javascript jquery cdn qtip qtip2
source share
3 answers

The * .map file is the source map. It contains information, for example, about the positions of the functions of the non-minified Qtip2 source code. Please note that I used a mini version of this on my web page.

Source maps help to develop using post-processed (for example, reduced) source code, without losing the ability to view the code, for example, when errors occur.

The Chrome debugger, as you can see in the image in my question above, loads it by default. After disabling this function, the file will no longer be loaded in the debugger settings.

Check out the video for short info or this documentation from Google.

Firefox offers the same function as here .

+10
source share

The last line of the Qtip2 script is the lke line:

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

Unfortunately, the URL currently returns 404. If you host Qtip2 yourself, you must find and delete this line at the end of the script. Otherwise, don't worry too much, because the .map file is only requested when you open the developer tools. Ordinary visitors do not download it.

Here's more info on .map files: jQuery jQuery-1.10.2.min.map launches 404 (not found)

+12
source share

I downloaded this plugin from here and the problem is resolved!

http://qtip2.com/v/2.2.1/

+1
source share

All Articles