Title: JS-Error: TypeError: $.browser is undefined
Last modified: August 30, 2016

---

# JS-Error: TypeError: $.browser is undefined

 *  Resolved [andrewfburton](https://wordpress.org/support/users/andrewfburton/)
 * (@andrewfburton)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/js-error-typeerror-browser-is-undefined/)
 * Hi Nirmal!
 * First, thanks for a great plugin!
 * I’ve noticed a JS error in the console saying: TypeError: $.browser is undefined.
 * It’s on line 97 of wprmenu.js and deals with “if( $.browser.mozilla )”.
 * Thank you for looking into this.
 * Andy
 * [https://wordpress.org/plugins/wp-responsive-menu/](https://wordpress.org/plugins/wp-responsive-menu/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [andrewfburton](https://wordpress.org/support/users/andrewfburton/)
 * (@andrewfburton)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/js-error-typeerror-browser-is-undefined/#post-6750665)
 * Hi Nirmal!
 * Was investigating the issue a bit:
 * jQuery.browser has been removed with jQuery 1.9 (as is explained here: [http://api.jquery.com/jquery.browser/](http://api.jquery.com/jquery.browser/)).
 * Unless you want to check for Firefox using Modernizr you could simply add JQuery
   Migrate to your plugin. You can find the latest release here: [https://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/](https://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/)
 * All you have to do then is add the file to your js directory and load it via 
   wp_enqueue_script. In my local environment it resolved the issue.
 * Hope this helps.
 *  Plugin Author [Nirmal Kumar Ram](https://wordpress.org/support/users/sagarseth9/)
 * (@sagarseth9)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/js-error-typeerror-browser-is-undefined/#post-6750873)
 * Well, WordPress automatically adds in the migrate script. You might not be using
   the default WordPress jquery file that’s why you were having that issue.
 * Regards
    -Nirmal
 *  Thread Starter [andrewfburton](https://wordpress.org/support/users/andrewfburton/)
 * (@andrewfburton)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/js-error-typeerror-browser-is-undefined/#post-6750882)
 * Hi Nirmal!
 * Your reply really made me think, and I realized the problem was with loading 
   custom scripts with the wp_enqueue_scripts action. Setting a priority of 9 solved
   the issue.
 * Thanks again for a great plugin!
 * Regards
    Andy

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JS-Error: TypeError: $.browser is undefined’ is closed to new replies.

 * ![](https://ps.w.org/wp-responsive-menu/assets/icon-256x256.png?rev=2246917)
 * [WP Responsive Menu](https://wordpress.org/plugins/wp-responsive-menu/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-responsive-menu/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [andrewfburton](https://wordpress.org/support/users/andrewfburton/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/js-error-typeerror-browser-is-undefined/#post-6750882)
 * Status: resolved