Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter andrewfburton

    (@andrewfburton)

    Hi Nirmal!

    Was investigating the issue a bit:

    jQuery.browser has been removed with jQuery 1.9 (as is explained here: https://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/

    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

    (@sagarseth9)

    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

    (@andrewfburton)

    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.