• Hi,

    I have some sort of problem with “Preload slider background images” property located in graphene.js.

    When I followed from the chrome developer tools/source, I get the “Failed to load resource: the server responded with a status of 404 (Not Found) http://ee.yeditepe.edu.tr/tr/%5Bobject%20HTMLDivElement%5D” message and website load effected by about 2sec.

    And when I click on the problem from developer tools it points out the “(new Image()).src = this;” line from below code.

    // Preload slider background images
    		if ( grapheneJS.sliderDisplay == 'bgimage-excerpt' ) {
    			$('.slider_items .slider_post').each(function(){
    				var src = $(this).css('background-image').replace('url(', '').replace(')','');
    				if ( src.indexOf('http') == 0 ){
    					(new Image()).src = this;
    				}
    				src = null;
    			});
    		}

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Also I followed the site loading from tools.pingdom.com. It also shows a huge delay because of [object%20HTMLDivElement].

    For now I commented out this part of code, the problem vanishes, nothing effected as far as I can see.

    Please give me some advise with it because its a momentary cure.

    ee.yeditepe.edu.tr

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘A strange issue with graphene.js and slider background images’ is closed to new replies.