function edgtfPreloadBackgrounds(){
		var preloadBackHolder = $('.edgtf-preload-background');
		
		if(preloadBackHolder.length) {
			preloadBackHolder.each(function() {
				var preloadBackground = $(this);
				
				if(preloadBackground.css('background-image') !== '' && preloadBackground.css('background-image') !== 'none') {
					var bgUrl = preloadBackground.attr('style');
					
					bgUrl = bgUrl.match(/url\(["']?([^'")]+)['"]?\)/);
					bgUrl = bgUrl ? bgUrl[1] : "";
					
					if (bgUrl) {
						var backImg = new Image();
						backImg.src = bgUrl;
						$(backImg).load(function(){
							preloadBackground.removeClass('edgtf-preload-background');
						});
					}
				} else {
					$(window).load(function(){ preloadBackground.removeClass('edgtf-preload-background'); }); //make sure that edgtf-preload-background class is removed from elements with forced background none in css
				}
			});
		}
	}
/*
	 *	Preload background images for elements that have 'edgtf-preload-background' class
	 */
Preload background images for elements that have 'edgtf-preload-background' class
Preload background images for elements that have ' edgtf - preload - background ' class
function edgtfPreloadBackgrounds(){
		var preloadBackHolder = $('.edgtf-preload-background');
		if(preloadBackHolder.length) {
			preloadBackHolder.each(function() {
				var preloadBackground = $(this);
				if(preloadBackground.css('background-image') !== '' && preloadBackground.css('background-image') !== 'none') {
					var bgUrl = preloadBackground.attr('style');
					bgUrl = bgUrl.match(/url\(["']?([^'")]+)['"]?\)/);
					bgUrl = bgUrl ? bgUrl[1] : "";
					if (bgUrl) {
						var backImg = new Image();
						backImg.src = bgUrl;
						$(backImg).load(function(){
							preloadBackground.removeClass('edgtf-preload-background');
						});
					}
				} else {
					$(window).load(function(){ preloadBackground.removeClass('edgtf-preload-background'); }); 
				}
			});
		}
	}
function edgtfPreloadBackgrounds ( ) { var preloadBackHolder = $ ( '.edgtf-preload-background' ) ; if ( preloadBackHolder . length ) { preloadBackHolder . each ( function ( ) { var preloadBackground = $ ( this ) ; if ( preloadBackground . css ( 'background-image' ) !== '' && preloadBackground . css ( 'background-image' ) !== 'none' ) { var bgUrl = preloadBackground . attr ( 'style' ) ; bgUrl = bgUrl . match ( / url\(["']?([^'")]+)['"]?\) / ) ; bgUrl = bgUrl ? bgUrl [ 1 ] : "" ; if ( bgUrl ) { var backImg = new Image ( ) ; backImg . src = bgUrl ; $ ( backImg ) . load ( function ( ) { preloadBackground . removeClass ( 'edgtf-preload-background' ) ; } ) ; } } else { $ ( window ) . load ( function ( ) { preloadBackground . removeClass ( 'edgtf-preload-background' ) ; } ) ; } } ) ; } }
Preload background images for elements that have 'edgtf-preload-background' class
Preload background images for elements that have ' edgtf - preload - background ' class
//make sure that edgtf-preload-background class is removed from elements with forced background none in css