Okay
  Public Ticket #171019
Slider in IE 8
Closed

Comments

  • Matthew started the conversation

    Hello! On IE 8 (and below), my slider doesn't load up -- it just acts as if it's loading but it never does. This site does have a more complicated slider, having YouTube Videos as part of the slider. Would you know if I could fix this? Thanks!

  • drew replied

    Ditto! Need some kinda patch for IE 8 

  • Matthew replied

    By patch, do you mean something I have to do on my end with IE 8 or is that an patch your team has to apply to Salient?

    Thanks again!

  •  1,086
    ThemeNectar replied

    Hey Matthew! Anyway you could provide me a log in so I can see if I can find quick fix?

    Cheers :)

  •   Matthew replied privately
  • drew replied

    Please help as well

  •  1,086
    ThemeNectar replied

    Just sorted it on your end Matthew!

    Drew - to fix this on your end open the init.js file located in the js folder and change this:

     
    //home slider init
    if($('#featured').length > 0 && $().orbit) {
    		 
    	 var $firstBg = $('#featured').find('.slide:first-child > article').attr('style');
    
    	 var pattern = /url\(["']?([^'")]+)['"]?\)/;
    	 var match = pattern.exec($firstBg);
    	 if (match) {        
    	        var slideImg = new Image();
    		slideImg.src = match[1];
    			
    		$(slideImg).load(function(){ 
    			homeSliderInit();
    		});
    	 } 
    

    to this:

     
    //home slider init
    if($('#featured').length > 0 && $().orbit) {
    		 
    	var $firstBg = $('#featured').find('.slide:first-child > article').attr('style');
    
            var pattern = /url\(["']?([^'")]+)['"]?\)/;
    	var match = pattern.exec($firstBg);
    	if (match) { 
             
    	   var slideImg = new Image();
    
    		slideImg.onload = function(){ 
    			homeSliderInit();
    		}
          
          slideImg.src = match[1];
             
         }
    

    Cheers!