Bad map file for jQuery 1.9.1 in the jQuery CDN

Posted on by

Quite a while back, Mike Taylor pointed out that the jQuery CDN has a minified copy of jQuery 1.9.1 with an incorrect map file reference. Basically, it refers to the map for jQuery 1.11.1, and that’s just wrong. If you are trying to debug a site that uses the minified jQuery 1.9.1 file, dev tools will get very confused and make a hard job even harder.

You might think that we could just edit the https://code.jquery.com/jquery-1.9.1.min.js file to point to the correct map file, which does exist as https://code.jquery.com/jquery-1.9.1.min.map. There are at least two problems with doing that. The first is that the file is heavily cached across the internet, since it’s been assumed for years that it will never change once the release occurs. Even if we edited the file, both the JavaScript and map file might never actually update at the point where they’re being used.

A second problem is even more serious. We’ve been advocating that developers use the script’s integrity attribute to ensure that the file you are including has not been modified since you originally wrote the script tag. If we modify the contents of the file this attribute will be wrong and the page will no longer include the file. This is likely to completely break the page! Given the age of jQuery 1.9.1 it is possible that many of the pages including this file are not being actively maintained. Thus, we can’t seriously consider changing the JavaScript file in any way, not even one byte.

The least disruptive option is to remove the jquery.min.map file that the jQuery 1.9.1 minified file references. It does not affect whether jQuery runs correctly for the visitors of a site. It only has the effect of disabling the source map. Because of these pitfalls of including the sourceMappingURL map reference in CDN JavaScript files that are often copied elsewhere, we no longer include it.

If you need to debug a site using one of these minified files, it is possible to manually associate a map file in Chrome. Open the minified source file, right click over the area of the minified source, and select “Add source map…”.

The incorrect jquery.min.map file has been removed from the jQuery CDN. We expect that there won’t be any observable change from removing this file, other than restoring sanity to debugging a site that uses jQuery 1.9.1. The jQuery 1.11.1 minified file does not reference its map, so it will continue to work fine and you can associate a map file as mentioned above.

Because caches are so aggressive on CDNs and across the internet, it’s possible that you may still see this map file for a while. If you see some unusual behavior that you think is related to the missing jquery.min.map file you can open a ticket on the CDN issue tracker.

201 thoughts on “Bad map file for jQuery 1.9.1 in the jQuery CDN

  1. I want to express some appreciation to this writer for bailing me out of such a situation. As a result of checking throughout the world wide web and getting notions which are not helpful, I believed my life was done. Living devoid of the strategies to the problems you have sorted out by way of this guideline is a critical case, and ones which may have adversely affected my career if I had not noticed your blog. Your personal talents and kindness in dealing with all things was valuable. I’m not sure what I would’ve done if I had not come upon such a stuff like this. I can at this point relish my future. Thank you very much for your impressive and results-oriented guide. I won’t think twice to refer your site to anybody who needs and wants care on this problem.

  2. I delight ?n, lea? to I d?scovered exactly wha I used to be
    having a lo?k for. Y?u’ve ended my 4 da?y lengthy
    hunt! God Bless you m?n. Have a nice day. Bye

  3. Hello there! This article could not be written much better!
    Looking at this post reminds me of my previous roommate! He constantly kept preaching about this.
    I most certainly will forward this post to him. Fairly certain he’s going to have a very good read.
    Thank you for sharing!

  4. Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will certainly return.

  5. Hi! I know this is kinda off topic but I was wondering if
    you knew where I could get a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  6. Hi! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest authoring a blog post or vice-versa?
    My blog covers a lot of the same topics as yours and I
    believe we could greatly benefit from each other.
    If you might be interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Great blog by the way!

  7. I and also my friends came taking note of the good solutions located on the website then all of the sudden came up with a terrible suspicion I had not thanked the blog owner for those tips. All the young men are actually consequently excited to learn all of them and have quite simply been tapping into those things. Many thanks for simply being quite accommodating and also for deciding upon this kind of really good themes most people are really eager to be aware of. My sincere apologies for not expressing appreciation to you earlier.

  8. We stumbled over here from a different web address
    and thought I might check things out. I like what I see so i am just following you.
    Look forward to exploring your web page repeatedly.

  9. I don’t know if it’s just me or if perhaps everybody else encountering problems with your
    website. It appears as though some of the written text in your content are running
    off the screen. Can someone else please comment and let me know if this
    is happening to them as well? This may be a issue with my browser
    because I’ve had this happen previously. Many thanks

  10. Simply wish to say your article is as astonishing.
    The clarity to your put up is simply nice and that i could suppose you’re knowledgeable in this subject.
    Well along with your permission let me to take hold of your feed to
    keep up to date with imminent post. Thank you a million and please keep up the gratifying
    work.

  11. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an edginess
    over that you wish be delivering the following. unwell unquestionably come
    further formerly again since exactly the same nearly a lot often inside case you
    shield this increase.

  12. Hello there! This post couldn’t be written any better!

    Looking through this post reminds me of my previous roommate!
    He constantly kept talking about this. I’ll send this information to him.
    Pretty sure he’s going to have a great read.
    Thanks for sharing!

  13. If some one wishes expert view regarding blogging afterward i suggest him/her to pay a quick visit this
    web site, Keep up the nice job.

  14. Hello there! I know this is kind of off topic but I was wondering if you knew where I could locate
    a captcha plugin for my comment form? I’m using the same
    blog platform as yours and I’m having difficulty finding
    one? Thanks a lot!

  15. Hello, i think that i noticed you visited my web site so i came
    to go back the choose?.I’m trying to to find issues to enhance my website!I assume its ok to use some
    of your concepts!!

  16. Very nice post. I just stumbled upon your blog and wished to say that I’ve truly enjoyed surfing
    around your weblog posts. After all I’ll be subscribing for your feed and I’m hoping you write once more very soon!

  17. The Juno B1 Cabin Suitcase glides on four precision-made Hinomoto wheels (a
    company which, according to obsessive fliers, is a standard-bearer of quality caster-making).
    The thing is extraordinarily light at 5.3 pounds (the Rimowa analogue
    tips the scales at 7.1), but feels shockingly sturdy; its speckled polypropylene
    shell is built to combat and conceal obvious (but inevitable) scratches.

    The suitcase also has a handy built-in lock, and indestructible hard casing.
    But what I really love about it is how much I can fit.

    Despite its tiny dimensions, which always fit into an overhead, I’ve been able to cram in a week’s worth of clothes for a winter trip in Asia (thanks to clever folding), or enough for ten summery days in L.A.
    It’s really the clown car of carry-on luggage.

  18. Whats up this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted to get advice from someone with experience.

    Any help would be enormously appreciated!

  19. After I originally commented I seem to have clicked the -Notify
    me when new comments are added- checkbox and from now on whenever a comment is added I get 4 emails with the same
    comment. Is there a means you can remove me from that service?
    Kudos!

  20. An impressive share! I have just forwarded this onto a co-worker who was conducting a little research on this.

    And he actually ordered me breakfast simply because I found it for him…

    lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending the time to talk about this issue here on your internet site.

  21. Excellent beat ! I would like to apprentice
    while you amend your web site, how could i subscribe for a blog website?
    The account helped me a acceptable deal. I had been a little bit acquainted of
    this your broadcast offered bright clear idea

  22. I just could not leave your site prior to suggesting that I extremely enjoyed
    the usual info an individual provide on your visitors?

    Is going to be back often to inspect new posts