Public Ticket #143477
Latency caused by Pinterest login


  • Tayfur started the conversation
    Hello, I recently installed the theme on demo settings; I did not import demo content. I'm trying to optimize my web site's performance, and I'm noticing considerable latency caused by a certain pinterest login attempt when i run the site on pingdom. My question is: How do I disable pinterest login attempt? I did not enable it anywhere. Thank you
  • Damian replied

    Same here i have just noticed this, it took 12 seconds for the page to load because of this 

  •  322
    Brian replied

    Look in inc/scripts.php lines 345 - 352:

    	var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
    	p.type = 'text/javascript';
    	p.async = true;
    	p.src = '//assets.pinterest.com/js/pinit.js';
    	f.parentNode.insertBefore(p, f);

    Try removing that code and see if this still happens.

  • Damian replied

    That works a treat :)

  • Tayfur replied

    yep, works all right. Thanks a lot :)