why is your plugin loading connect.facebook.net ? how to stop it
-
I do not want connect.facebook.net to be loaded, as it slows down my website. It seems your plugin is loading it. Why?
How do I stop it from loading it?
thanks
<script type="text/javascript">var ajaxurl = 'https://www.site.com/wp-admin/admin-ajax.php';</script><script type='text/javascript' > VideoJS.setupAllWhenReady(); </script><script>(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script><style type="text/css"> .ssba { } .ssba img { width: 20px !important; padding: 6px; border: 0; box-shadow: none !important; display: inline !important; vertical-align: middle; } .ssba, .ssba a { text-decoration:none; border:0; background: none; font-size: 14px; font-weight: bold; } .fb_iframe_widget span { width: 146px !important; }</style><script type="text/javascript" > function wangguard_isjQuery17() { var jQueryVersion = jQuery.fn.jquery.split('.'); var ret = ( (parseInt(jQueryVersion[0])==1) && (parseInt(jQueryVersion[1])>=7) ) || ( parseInt(jQueryVersion[0])>1 ); return ret; } if (typeof ajaxurl == 'undefined') ajaxurl = "https://www.site.com/wp-admin/admin-ajax.php"; else if (ajaxurl == undefined) ajaxurl = "https://www.site.com/wp-admin/admin-ajax.php"; jQuery(document).ready(function() { if (wangguard_isjQuery17() == true) { jQuery(document).on("click", ".wangguard-user-report", function(){ wangguardUserReport_handler(this); }); } else { jQuery('.wangguard-user-report').live('click' , function () { wangguardUserReport_handler(this); }); } function wangguardUserReport_handler(sender) { if (!confirm('Do you confirm to report the user?')) return; var userID = jQuery(sender).attr("rel"); if ((userID == undefined) || (userID == '')) { userID = 0; //BP profile button doesn't allow to add a rel attr to the button so we store it in tne class field var tmpClass = jQuery(sender).attr("class"); var matches = tmpClass.match(/wangguard-user-report-id-(\d+)/); if (matches != null) userID = matches[1]; } data = { action : 'wangguard_ajax_front_handler', object : 'user', wpnonce : '7876c82742', userid : userID }; jQuery.post(ajaxurl, data, function(response) { if (response=='0') { alert('The user was reported.'); jQuery(".wangguard-user-report[rel='"+userID+"']").fadeOut(); jQuery(".wangguard-user-report-id-"+userID).fadeOut(); } }); }; if (wangguard_isjQuery17() == true) { jQuery(document).on("click", ".wangguard-blog-report", function(){ wangguardBlogReport_handler(this); }); } else { jQuery('.wangguard-blog-report').live('click' , function () { wangguardBlogReport_handler(this); }); } function wangguardBlogReport_handler(sender) { if (!confirm('Do you confirm to report the blog and authors?')) return; var blogID = jQuery(sender).attr("rel"); if ((blogID == undefined) || (blogID == '')) { blogID = 0; //BP profile button doesn't allow to add a rel attr to the button so we store it in tne class field var tmpClass = jQuery(sender).attr("class"); var matches = tmpClass.match(/wangguard-blog-report-id-(\d+)/); if (matches != null) blogID = matches[1]; } data = { action : 'wangguard_ajax_front_handler', object : 'blog', wpnonce : '7876c82742', blogid : blogID }; jQuery.post(ajaxurl, data, function(response) { if (response=='0') { alert('The blog was reported.'); jQuery(".wangguard-blog-report").fadeOut(); } }); }; });</script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘why is your plugin loading connect.facebook.net ? how to stop it’ is closed to new replies.