当前位置: 动力学知识库 > 问答 > 编程问答 >

asynchronous - Add async keyword to Facebook graph api

问题描述:

The following gives me an 8 second page load

 $temp_facebook_comments = file_get_contents("https://graph.facebook.com/comments/?ids=" . $comment_page);

$facebook_comments = json_decode($temp_facebook_comments);

$facebook_comments_array = array();

if(isset($facebook_comments->{$comment_page}->comments->data))

I'm looking for a way to add an async keyword to defer facebook load.

分享给朋友:
您可能感兴趣的文章:
随机阅读: