Created
August 15, 2012 13:48
-
-
Save danbruegge/3360301 to your computer and use it in GitHub Desktop.
SocialSharePrivacy load only once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( function( $ ) { | |
var loadSsp = function() { | |
if( $( '.socialshareprivacy' ).length > 0 ){ | |
$( '.socialshareprivacy' ).socialSharePrivacy(); | |
} | |
} | |
if( !$.socialSharePrivacy ) { | |
$.getScript( 'http://www.totaltankstelle.de/static/socialshareprivacy/socialshareprivacy.js', function() { | |
loadSsp(); | |
} ); | |
} else { | |
loadSsp(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment