WordPress.org

Ready to get started?Download WordPress

Forums

Simple Twitter Connect
possible to use async script because twitter is slowing my si (1 post)

  1. thewpfan
    Member
    Posted 3 years ago #

    My site is being slowed down by twitter loading up from the header.

    If it is possible to use an async script, how would I be able to implement this in your plugin?

    <script type="text/javascript">
    //async script, twitter button fashiolista.com style
    (function() {
    var s = document.createElement('SCRIPT');
    var c = document.getElementsByTagName('script')[0];
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://platform.twitter.com/widgets.js';
    c.parentNode.insertBefore(s, c);
    })();
    </script>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic