It looks like for minified libraries, you can provide a map to developer tools like chrome to help demystify the minified variables.

The jquery version in core doesn't have this, but 1.10.2 at least does. Works fine out of box, but using core aggegated setting moves the js to the files directory, but not the map, so it looks in the wrong place for the map.

I don't really know how this would be fixed other than moving the map to the js files directory on aggegation of the js, if that is at all possible.

http://stackoverflow.com/questions/18365315/jquerys-jquery-1-10-2-min-ma... for more information about this file.

CommentFileSizeAuthor
#5 2217263-jquery-min-map.patch153.6 KBjcisio
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MXT’s picture

I'm experiencing this issue too.

Thank you very much for resolving this

DamienMcKenna’s picture

Title: Missing file sites/default/files/js/jquery-1.10.2.min.map in chrome developer's tools when process enabled » Add jquery-1.10.2.min.map
jcisio’s picture

Title: Add jquery-1.10.2.min.map » Safari: jquery-1.10.2.min.map not found in sites/default/files/js
Category: Feature request » Bug report
jcisio’s picture

Since jQuery 1.11.0 there is no source map indication in the minified file (http://blog.jquery.com/2014/01/24/jquery-1-11-and-2-1-released/). I think we can simply remove this line in 1.10.2.

jcisio’s picture

Status: Active » Needs review
FileSize
153.6 KB

I don't know how if there is any other way to use the shipped sourcemaps file so I left it as is.

echoz’s picture

Deleting this line got rid of the reproducible not found warning, and jquery is working fine. I don't know enough about the best fix, so leaving this as Needs review.

Tess Bakker’s picture

Status: Needs review » Reviewed & tested by the community

Tested the patch with an active site: Perfect result, no watchdog messages any more and everything (JS) still working
Tested the patch with current 7.x-2.x branch: without any issue

Conclusion: RTBC

jenlampton’s picture

Confirming RTBC status. Patch works perfectly, thanks!

helmo’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev

Another +1 for RTBC

It also applies to 7.x-3.x.

amme’s picture

  • markcarver committed 27fb37d on 7.x-3.x authored by jcisio
    Issue #2217263 by jcisio, hefox, Tessa Bakker: Safari: jquery-1.10.2.min...
markhalliwell’s picture

Status: Reviewed & tested by the community » Fixed
markhalliwell’s picture

markhalliwell’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.