开发者

How does twitter live-update your timeline?

开发者 https://www.devze.com 2022-12-19 22:28 出处:网络
Thanks for reading. We are developing a web app. and we\'re finding out how to live-update some counters and info in the client side, without use scheduled-Json-Updates (yes, timeouts works... but th

Thanks for reading.

We are developing a web app. and we're finding out how to live-update some counters and info in the client side, without use scheduled-Json-Updates (yes, timeouts works... but there should be another way ; )

So I was looking at Twitter... they live-update our timeline don't they?

I cannot see the timeline updates in the XHR FireBug window. but they are happening : O

So how does twitter live-update our timeline?

Or

How could I update info scalable and efficiently in the client side via开发者_如何学编程 ajax?


See here: Prevent logging of AJAX calls in console tab of Firebug like Twitter

Quoting the answerer, brianng:

Note the callback processSummizeRefresh.

Since the call is being made to a subdomain (integratedsearch.twitter.com), JSONP is being used which injects a script tag to make the request.

No special FireBug hiding magic :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号