WordPress.org

Ready to get started?Download WordPress

Forums

Graphene
A strange issue with graphene.js and slider background images (2 posts)

  1. eeydtp
    Member
    Posted 1 year ago #

    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/object%20HTMLDivElement" 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

  2. Graham
    Member
    Posted 1 year ago #

    Has this issue been resolved?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.