WordPress.org

Support

Support » Plugins and Hacks » Simple Twitter Connect » [Plugin: Simple Twitter Connect] possible to use async script because twitter is slowing my si

[Plugin: Simple Twitter Connect] possible to use async script because twitter is slowing my si

  • 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>

  • The topic ‘[Plugin: Simple Twitter Connect] possible to use async script because twitter is slowing my si’ is closed to new replies.
Skip to toolbar