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.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2217263-jquery-min-map.patch | 153.6 KB | jcisio |
Comments
Comment #1
MXTI'm experiencing this issue too.
Thank you very much for resolving this
Comment #2
DamienMcKennaClosed a duplicate: #2331141: Is it possible to cache jquery-1.10.2.min.map?
Comment #3
jcisio CreditAttribution: jcisio commentedComment #4
jcisio CreditAttribution: jcisio commentedSince 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.
Comment #5
jcisio CreditAttribution: jcisio commentedI don't know how if there is any other way to use the shipped sourcemaps file so I left it as is.
Comment #6
echoz CreditAttribution: echoz commentedDeleting 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.
Comment #7
Tess BakkerTested 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
Comment #8
jenlamptonConfirming RTBC status. Patch works perfectly, thanks!
Comment #9
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedAnother +1 for RTBC
It also applies to 7.x-3.x.
Comment #10
amme CreditAttribution: amme commentedComment #12
markhalliwellComment #13
markhalliwellComment #14
markhalliwell