0

Hi i have a discussion page in PHP where there will be topics listed with comments below that. I'm loading all the topics during the page load and comments through ajax request. Since the user can add any number of topics and any number of comments under each topic, the page tooks very huge time to load(In case when 10 topics(paginated) and 100 comments under each topic). So how to optimize this for some great speed? Any idea on this would be greatly appreciated.

Note: I'm sending a request for each topic

4

1 回答 1

0

在初始页面加载期间加载一些基本主题和一些评论,然后在用户单击相应链接以加载更多时使用 AJAX 加载更多评论/主题。以 Facebook 更新为例。

于 2012-09-10T10:13:11.447 回答