Since jQuery.browser is deprecated and jQuery.support is the recommended tool to tackle browser issues, what's the recommended way to handle the following problem?
The Fullscreen theme of the Galleria jquery plugin doesn't work properly (wrong image positioning) in IE < 8 and in IE 8 and 9 compatibility view mode. Doctype is HTML 5, and turning off that mode with
<meta http-equiv="X-UA-Compatible" content="IE=edge">
does its job, but how do I use jQuery.support properly do check if the IE version is < 8 or the compatibility view is somehow still turned on (because then we use another theme for these users)?
Update: Here's the code we use now (at the bottom of the html).
<script type="text/javascript">
$(document).ready(function () {
if ($.browser.msie && $.browser.version < 8) {
Galleria.loadTheme('js/galleria/themes/classic/galleria.classic.min.js');
$("#gallery").galleria({
/* ... */
});
} else {
Galleria.loadTheme('js/galleria/themes/fullscreen/galleria.fullscreen.min.js');
$("#gallery").galleria({
/* ... */
});
}
});
</script>