Javascript error: $.browser is undefined

I’ve had to fix a couple of our sites today due to the javascript error “$.browser is undefined”, If you’re using Google’s CDN to deliver your minified jQuery, you may well be seeing the same thing.

It looks like Google has updated their main 1.0 branch of jQuery to serve version 1.9 of the popular javascript library.  Unfortunately some plugins haven’t been updated (or site owners haven’t updated the plugin) to stop using $.browser which is now deprecated.

Fortunately, fixing this is just a case of hardcoding the CDN call to use version 1.8, so in this case change –


And that should fix it.

So far I’ve seen problems with jQuery.autocomplete and jCrop plugins, feel free to add more in the comments.

6 Responses to “Javascript error: $.browser is undefined”

  1. Mark. Says:

    Thanks, this saved my life!, I was having problems with jquery ui tabs and cycle plugin!

  2. maroberto1 Says:

    Reblogged this on XtremeCleanTest.

  3. osblues Says:

    @Jamie Something must still be calling that (deprecated) function, do you have a publicly accessible URL that I can take a look at?

    • osblues Says:

      Glad you got it working.. but weird you had to hack it. As long as you’re sure the code is targeting the 1.8 version of jQuery, you *should* be fine.

  4. Alex Says:


    You helped me a lot!

    Had some troubles with jQuery.jCrop plugin…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: