ServAce85
ServAce85

Reputation: 1622

Why is Gmail in an iFrame?

This may have already been asked by someone, but I can't seem to find the answer. At the risk of repeating a question, I would like for someone to explain the reason that Google's Gmail is placed inside of an iFrame HTML element instead of simply placing the code in the document itself.

If this has been asked (and answered) before, please direct me to the correct answer since my searches haven't resulted in any definitive answers. Again, sorry if this is a repeat.

Thanks.

Upvotes: 2

Views: 2121

Answers (2)

meder omuraliev
meder omuraliev

Reputation: 186662

Because it needs stateless behaviour ( instantaneous-ness ), and at the time of the writing it probably wasn't ideal to use XMLHttpRequest.

And by the time XMLHttpRequest became popular it was probably already too complex to refactor everything.

This is all assuming they do not use XHR now, which they could be in combination with iframes.

Upvotes: 0

Related Questions