cdnjs icon indicating copy to clipboard operation
cdnjs copied to clipboard

qtip missing map file

Open ethanpil opened this issue 12 years ago • 10 comments

Failed to load resource: the server responded with a status of 404 (Not Found) http://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0//var/www/qtip2/build/tmp/tmp-11954ure4sxc/jquery.qtip.min.map event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

image

ethanpil avatar May 14 '14 15:05 ethanpil

@ethanpil - this is the URL for the .map file:

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

Does that help?

petecooper avatar May 14 '14 15:05 petecooper

I believe chrome was trying to autoload it. Arent the file names/paths supposed to match so it transparently loads when i open debug tools. I think thats the intended use. Perhaps the uploaded build is incorrectly configured?

ethanpil avatar May 14 '14 15:05 ethanpil

Interesting. I did a Google search for that tmp-11954ure4sxc string and one result was returned:

http://www.studyinginmalta.com/_common_cs_v5/static/js/jquery/plugins/qtip/2.2/jquery.qtip.min.map

The cdnjs version of that same map file (linked in my previous post) does not contain that string. Compare the two - first is the search result above, second is cdnjs copy:

{"version":3,"file":"/var/www/qtip2/build/tmp/tmp-11954ure4sxc/jquery.qtip.min.js","sources":["/var/www/qtip2/build/tmp/tmp-11954ure4sxc/jquery.qtip.js"],"names":
{"version":3,"file":"dist/jquery.qtip.min.js","sources":["dist/jquery.qtip.js"],"names":

So, right now, I'm not sure where that /var/www/qtip2/build/tmp/tmp-11954ure4sxc/jquery.qtip.min.map is coming from.

petecooper avatar May 14 '14 16:05 petecooper

@ethanpil I still can't figure out why you're getting this error - can you clear your cache and see if it happens again?

petecooper avatar May 23 '14 08:05 petecooper

It turns out that one of the developers downloaded the file from CDNJS but was hosting it locally... So I guess it confused the browser. Sorry about that..

ethanpil avatar May 23 '14 18:05 ethanpil

I searched for "http://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0//var/www/qtip2/build/tmp/tmp-11954ure4sxc/jquery.qtip.min.map" inside jquery.qtip.min and just straight deleted it, as it was within a comment. I think somehow the browser failed to recognize it was commented out. Whatever. problem solved

eleanorz avatar Aug 05 '14 00:08 eleanorz

I've solved this problem changing the url (sourceMappingURL=https://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0//var/www/qtip2/build/tmp/tmp-9404cjj31w0/jquery.qtip.min.map) located at the end of the jquery.qtip.min.js file, to my local file version, and the google warning disappeared.

PanamiITSystems avatar Sep 09 '14 14:09 PanamiITSystems

As of 2.2.1 the path is now relative to the file itself, so this should no longer be an issue once the new version is pushed up!

Craga89 avatar Sep 09 '14 18:09 Craga89

woot! big ups!

eleanorz avatar Sep 12 '14 19:09 eleanorz

I've been reading a little more about this and I've found this: http://stackoverflow.com/questions/23570843/qtip2-loads-a-jquery-qtip-min-map-from-internet-and-slows-down-site They explain that it's just a developer helper resource and we don't really have to worry about this. Because the error it's only displayed while devtools is open...

PanamiITSystems avatar Sep 16 '14 16:09 PanamiITSystems