I’m experiencing an error which wont let my page load.
Uncaught TypeError: Cannot read property ‘msie’ of undefined
The error in the console refer to this code:
if (jQuery.browser.msie)
extra_px += 3;
// Fix Link Clicking on IE 7 and below versions
if (jQuery.browser.msie && Number($.browser.version) < 8) {
span_text.css('cursor', 'pointer');
span_text.click(function() {
window.location = menu_item.parent().attr("href");
});
}
The weird thing is that it suddenly happened, I didn’t change a thing. For reference, I’m using WordPress.
source
As you can see in current version of jQuery, there is no
$.browserproperty anymore.Most probably it was moved to plugin as was stated in docs.
So if you use the very last version of jQuery, the
undefinederror is understandable.