I'm trying to add this social widget after the body has loaded.
I first tried doing:
var stumble = '<script src="' + 'http://www.stumbleupon.com/hostedbadge.php?s=1' + '"> <\/script>';
$('#social-widget').append(stumble);
But that obviously didn't work, so I tried:
var stumble = document.createElement('script');
stumble.src = 'http://www.stumbleupon.com/hostedbadge.php?s=1';
$('#social-widget').append(stumble);
Which also didn't work. Any idea on what I am missing here?