So I have a javascript function that runs on clicking a link in the site.
$('.mainNavWrap .preloadNav a, .bannerNav li a').click(function(event){
    event.preventDefault();
    linkLocation = this.href;
    $('.preloader2').fadeIn(100, redirectPage);
});
function redirectPage() {
    setTimeout(function(){
        window.location = linkLocation;
    }, 1000);
}
The function calls a preloader before the page redirects. How can I disable this entire function for ie8?
 
     
     
     
     
    