Why do some websites (like facebook) load scripts in an iframe?
Is this to allow the site to load more than 2 resources at a time because the iframe’s resources are at different URLs?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you are seing, might be an application of “Comet” communication, using a hidden iframe as data channel. A short explanation of the technique according to Wikipedia:
This could be used for something like a chat, where messages are expected to appear without noticeable delay, and preferably without periodical “polling” for new data. If this is what you have come across, you should see several
<script>elements in the frame, and more should be added as times go by.