watsmyname Posted October 22, 2009 Share Posted October 22, 2009 I m quite curious about facebook, below are the queries i have. 1. How status bar of facebook remains unrefreshed when pages are navigated? Well its possible that they have used ajax to load pages without anything refresh, but i can see page loading bar in browser's statusbar if any link is clicked. 2. How it can manage to be so fast when comment to on post is made and is instantly visible by another user? Even in poor internet connection, facebook seems to be very fast in executing query. 3. They are using loads of javascript timer to call loads of ajax functions to change contents automatically, how it still manage to be so fast. Can anyone can explain? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/ Share on other sites More sharing options...
trq Posted October 22, 2009 Share Posted October 22, 2009 Pretty much all of your questions can be answered by the fact that they are using allot of Ajax. Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/#findComment-941835 Share on other sites More sharing options...
watsmyname Posted October 22, 2009 Author Share Posted October 22, 2009 Pretty much all of your questions can be answered by the fact that they are using allot of Ajax. yes i know but while navigating pages does browser's statusbar shows loading and loadingbar if ajax is used?? Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/#findComment-941840 Share on other sites More sharing options...
trq Posted October 22, 2009 Share Posted October 22, 2009 There not using Ajax for everything. You still make a normal request for most pages. Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/#findComment-941843 Share on other sites More sharing options...
watsmyname Posted October 22, 2009 Author Share Posted October 22, 2009 There not using Ajax for everything. You still make a normal request for most pages. yes but still why the facebook's statusbar remains unchanged despite we see loading stuffs in browser's statusbar..thats my curiosity or are they loading contents in iframe?? Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/#findComment-941845 Share on other sites More sharing options...
trq Posted October 22, 2009 Share Posted October 22, 2009 are they loading contents in iframe?? Yes. A simple view source would reveal that to be the case. Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/#findComment-941848 Share on other sites More sharing options...
sorenchr Posted October 24, 2009 Share Posted October 24, 2009 are they loading contents in iframe?? Yes. A simple view source would reveal that to be the case. No, the iFrame is solely used to load content from an external site (something about Ajax not supporting external sites in certain functions). What Facebook does to keep the chat-bar static, is to load each new page's content into the "main" div on the page, thereby creating a sort of iframe-like effect. If you look at the address-bar when you navigate around, you can see the hash (#) changing with every link you click, that data after the hash is used to tell their Ajax scripts where to get the content from. Quote Link to comment https://forums.phpfreaks.com/topic/178583-questions-regarding-facebook/#findComment-943377 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.