Facebook JAVA SDK makes huge delays in page loading

Um alle Funktionen von Destinaja nutzen zu können, sollten Sie sich registrieren oder einloggen.
  • Hello there...


    I have also described in WBB Forums that Facebook JAVA SDK makes huge delays in page loading of my community.


    Here is the post => https://community.woltlab.com/…t-running-in-asynch-mode/


    My suggestion is that we must Run all Java in asynch mode, to NOT Block DOM Rendering .


    An example is this..



    Code
    1. <script>(function(d, s, id) {
    2. var js, fjs = d.getElementsByTagName(s)[0];
    3. if (d.getElementById(id)) return;
    4. js = d.createElement(s); js.id = id;
    5. js.async = true;
    6. js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=839587286137139&version=v2.2";
    7. fjs.parentNode.insertBefore(js, fjs);
    8. }(document, 'script', 'facebook-jssdk'));</script>

    I am not an expert in coding and I don't know how can this be done.
    But I am sure that all Java must be running in asynchronous mode to help page loading time.


    My suggestion is to include asynch mode in all relative Java plugins.


    Thank you in advance for your help. :thumbsup: