Viewing 4 replies - 16 through 19 (of 19 total)
  • function java_to_bottom() {
    if (is_single(array())) { // Change the name to match the name(s) of the pages using the form ?>
    <script>(function(d, s) {
    var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) {
    if (d.getElementById(id)) {return;}
    js = d.createElement(s); js.src = url; js.id = id;
    fjs.parentNode.insertBefore(js, fjs);
    };
    load(‘//static.ak.fbcdn.net/rsrc.php/v2/yo/r/ssI5dhaSfA6.js’, ‘fbjs1’);
    load(‘//static.ak.fbcdn.net/rsrc.php/v2/yd/r/0EzHlWYG2R-.js’, ‘fbjs2’);
    load(‘//static.ak.fbcdn.net/rsrc.php/v2/yO/r/nOspxDYdyk_.js’, ‘fbjs3’);
    load(‘//static.ak.fbcdn.net/rsrc.php/v2/yX/r/AhktXCJ4AD1.js’, ‘fbjs4’);
    load(‘//static.ak.fbcdn.net/rsrc.php/v2/y7/r/bWt6G76Xdum.js’, ‘fbjs5’);
    load(‘//static.ak.fbcdn.net/rsrc.php/v2/yi/r/gkANllSOhvG.js’, ‘fbjs6’);
    load(‘https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=9&#8217;, ‘fbjs7’);
    load(‘//w.sharethis.com/share4x/js/st.318bce8aee8cf5a4e4ca2924c68269a7.js’, ‘shrthis’);
    }(document, ‘script’));</script>

    <?php } }
    add_action(‘wp_footer’, ‘java_to_bottom’);

    im not gonna guarantee this will work, but that is how it would be done, then you need to prevent the other scripts loading in the head.

    but to make it clearer for me, can you turn off the minify on w3, it makes it hard to see your source code.

    TEST ACCOUNT

    (@icrunched)

    Hmm.. Great informative discussion. I noticed the same today and it seems ~1MB of facebook code was loading from “s-static.ak.fbcdn.net/rsrc.php”. With some debugging I found the cause. Fixed it with implementing HTML5 based like box widget.

    I’ve created informative post on my blog to get detailed steps: https://icrunched.co/defer-parsing-of-javascript-suggestion-stop-loading-s-static-ak-fbcdn-net-rsrc-php/

    Plugin Contributor Niall Kennedy

    (@niallkennedy)

    version 1.1 of the Facebook plugin loads JavaScript asynchronously and interprets social plugin markup.

    Adding many mentions to your page will increase the number of required resources as an image is added to the page for each mention.

    estimated,
    How to remove the Social Sharing Buttons from the viewing page which I’m a visitor and it’s obstructing the view of the page content.
    It’s a floating pluging and it hasn’t close or minimize option.
    Also, few ago, when visiting one site with the same issue, this time a blue twitter bird which kept flying over the page content. If I had a shotgun, I would extinguish my screen monitor.
    Thus, as a web guest, how to remove those insane plugins.
    farewell
    *1 Google all afternoon, can’t find solution.
    *2 Bump old thread is a problem ?

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Where is all of this facebook code coming from? (SLOW SITE)’ is closed to new replies.