• Resolved dobriku

    (@dobriku)


    I realy enjoyed your plugin but for some reason using your plugin increased page load time from 650-850ms(without plugin) up to 1.350-1.550ms(with plugin) …
    Here is an example i used to implement same buttons w/o increased pagespeed ms w/o plugin

    <ul style="height:40px;list-style:none;margin:0;padding:0;">
    	<li style="float:left;">
    		<a id="s-twitter" class="twitter-share-button"> </a></li>
    	<li style="float:left;">
    		<div id="s-facebook" class="fb-like" style="margin-right:40px;">
    			 </div>
    	</li>
    	<li style="float:left;">
    		<div id="vk_like">
    			 </div>
    	</li>
    	<li style="float:left;margin-right:10px;">
    		<div id="s-google" class="g-plusone">
    			 </div>
    	</li>
    </ul>
    <script type="text/javascript">
    (function() {
    	function async_load(u,id) {
    		if (!gid(id)) {
    			s="script", d=document,
    			o = d.createElement(s);
    			o.type = 'text/javascript';
                            o.id = id;
    			o.async = true;
    			o.src = u;
    			// Creating scripts on page
    			x = d.getElementsByTagName(s)[0];
    			x.parentNode.insertBefore(o,x);
    		}
    	}
    	function gid (id){
    		return document.getElementById(id);
    	}
    	window.onload = function() {
    	
    	e = gid("s-twitter");
    	e.setAttribute("data-lang", "ru"); 
    	
    	e = gid("s-facebook");
    	e.setAttribute("data-layout", "button_count"); 
    	e.setAttribute("data-send", "false"); 
    	
    	e = gid("s-google");
    	e.setAttribute("data-size", "medium"); 
    	
    	
    	async_load("//platform.twitter.com/widgets.js", "id-twitter");//twitter
    	async_load("//connect.facebook.net/ru_RU/all.js#xfbml=1", "id-facebook");//facebook
    	async_load("https://apis.google.com/js/plusone.js", "id-google");//google
    	async_load("//vk.com/js/api/openapi.js", "id-vkontakte");//vkontakte
    	};
    	// Init vkontakte
    	window.vkAsyncInit = function(){
    		VK.init({apiId: 3363525, onlyWidgets: true});
    		VK.Widgets.Like("vk_like", {type: "button", height: 20});
    	};
    })();
    </script>

    Hopefully you will be able to optimize plugin even more 🙂
    With best regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Heateor Support

    (@heateor)

    We are glad that you like the plugin 🙂
    We will improve this aspect of the plugin in upcoming releases. For now, you can use Include Javascript in footer and Load all Javascript files in single file options at Super Socializer > General Options page (in admin) to reduce the webpage loading time significantly.

    Thread Starter dobriku

    (@dobriku)

    The point is, i did use this option…but page load time still was increased…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Increased GTmetrix pagespeed x2 :(’ is closed to new replies.