Reputation: 36970
Background: I have a webpage that lists latest 30 tweets from twitter. But every time I am calling jQuery ajax function to get the latest tweets. But this will be kinda overload to server and bandwidth issue I think.
I need an alternative solution for this . Is that possible with any other method
I am not sticking with jquery all the time, if php can do that ,great its enough. But how the client side will manage the refreshing the content
Upvotes: 0
Views: 143
Reputation: 2264
Your question is not related to jQuery, jQuery is merely a client-side javascript library.
If you don't want to do ajax request all the time, look into Websockets and/or longpolling techniques. This is how, for example, facebook implements its chat.
Interesting page: Comet
Good luck!
Upvotes: 2