Title: [Plugin: WP-FB-AutoConnect] Not Loading Asynchronously
Last modified: August 20, 2016

---

# [Plugin: WP-FB-AutoConnect] Not Loading Asynchronously

 *  Resolved [optimistguide](https://wordpress.org/support/users/optimistguide/)
 * (@optimistguide)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-fb-autoconnect-not-loading-asynchronously/)
 * The Facebook Connect javascript is not loading asynchronously for me. Although,
   it looks like it should be based on the code it creates. Facebook Connect’s support,
   at [http://developers.facebook.com/blog/post/530/](http://developers.facebook.com/blog/post/530/),
   shows how to set up the script correctly.
 * Your plugin creates the following code:
 *     ```
       <div id="fb-root"></div> <script type="text/javascript">window.fbAsyncInit = function()
             {
               FB.init({
                   appId: '338982446159202', status: true, cookie: true, xfbml: true, oauth:true, channelUrl: 'http://www.anthonysabilities.com/blog/wp-content/plugins/wp-fb-autoconnect/facebook-platform/channel.html'
               });
             };
             (function() {
               var e = document.createElement('script');
               e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
               e.async = true;
               document.getElementById('fb-root').appendChild(e);
             }());</script>
       ```
   
 * Facebook says to code like this:
 *     ```
       <div id="fb-root"></div>
       <script>
         /* All Facebook functions should be included
            in this function, or at least initiated from here */
         window.fbAsyncInit = function() {
           FB.init({appId: 'your app id',
                    status: true,
                    cookie: true,
        	     xfbml: true});
   
           FB.api('/me', function(response) {
             console.log(response.name);
           });
         };
         (function() {
           var e = document.createElement('script'); e.async = true;
           e.src = document.location.protocol +
             '//connect.facebook.net/en_US/all.js';
           document.getElementById('fb-root').appendChild(e);
         }());
       </script>
       ```
   
 * Any idea of why the script in your plugin is not loading asynchronously?
 * [http://wordpress.org/extend/plugins/wp-fb-autoconnect/](http://wordpress.org/extend/plugins/wp-fb-autoconnect/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [JK](https://wordpress.org/support/users/justin_k/)
 * (@justin_k)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-fb-autoconnect-not-loading-asynchronously/#post-2870217)
 * How exactly did you determine that it’s not loading asynchronously?
 * By the way, primary support for this plugin is here: [http://www.justin-klein.com/projects/wp-fb-autoconnect](http://www.justin-klein.com/projects/wp-fb-autoconnect)
 *  Plugin Author [JK](https://wordpress.org/support/users/justin_k/)
 * (@justin_k)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-fb-autoconnect-not-loading-asynchronously/#post-2870321)
 * Closing this due to lack of response.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WP-FB-AutoConnect] Not Loading Asynchronously’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fb-autoconnect.svg)
 * [WP Social AutoConnect](https://wordpress.org/plugins/wp-fb-autoconnect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fb-autoconnect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fb-autoconnect/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fb-autoconnect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fb-autoconnect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fb-autoconnect/reviews/)

## Tags

 * [async](https://wordpress.org/support/topic-tag/async/)

 * 2 replies
 * 2 participants
 * Last reply from: [JK](https://wordpress.org/support/users/justin_k/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-fb-autoconnect-not-loading-asynchronously/#post-2870321)
 * Status: resolved