Matt
Matt

Reputation: 23779

What is this notation: "//@" in Javascript?

The minified jQuery library file contains this comment at the top:

/*! jQuery v2.0.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-2.0.2.min.map
*/

Chrome is making requests for that file which isn't being found.

What is the meaning of the line starting with //@? Is it only used for source maps? Googling three non-alpha-numeric characters isn't yielding many results.

Upvotes: 0

Views: 72

Answers (1)

htxryan
htxryan

Reputation: 2961

Yes, it's for source maps.

"This enables developer tools to map calls back to their location in original source files."

http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ http://globaldev.co.uk/2013/01/happy-debugging-with-javascript-source-maps/

Upvotes: 1

Related Questions