Why google plus button ain’t loading on chrome and ie here?
<!-- Lazy Share Buttons Start -->
<script type="text/javascript">
$(window).load(function () {
loadSocial();
});
function loadSocial() {
//Twitter
if (typeof (twttr) != 'undefined') {
twttr.widgets.load();
} else {
$.getScript('http://platform.twitter.com/widgets.js');
}
//Facebook
if (typeof (FB) != 'undefined') {
FB.init({ status: true, cookie: true, xfbml: true });
} else {
$.getScript("http://connect.facebook.net/en_US/all.js#xfbml=1", function () {
FB.init({ status: true, cookie: true, xfbml: true });
});
}
//Google - Note that the google button will not show if you are opening the page from disk - it needs to be http(s)
if (typeof (gapi) != 'undefined') {
$(".g-plusone").each(function () {
gapi.plusone.render($(this).get(0));
});
} else {
$.getScript('https://apis.google.com/js/plusone.js');
}
}
</script>
<!-- Lazy Share Buttons End -->