Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Is putting script at the bottom of the page enough for non blocking Javascript?
- 0
- down vote
- favorite
- I'm wondering if putting the script tag to load Facebook sdk js is good enough or should I leverage async script that Facebook provides
- For example this is how I load Facebook sdk js right now in WordPress .
- <?php wp_enqueue_script( 'facebook-api', '//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=' . $app_id . '&version=v2.0' ); ?>
- It results in putting the <script> tag at the bottom of the page. Or do I have to do this which is suggested by Facebook? I wonder what the difference is in terms of performance?
- ............................
- the script on mediafire :
- http://bit.ly/1CHA5kY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement