Gmail Was Built on Browsers That Kept Crashing
Even some Google insiders said a full app inside a browser could not work.

Standard Capital · How Paul Buchheit Created GmailPush the browser a little too hard in those days, and it would crash. For Paul Buchheit, the Google engineer building what would become Gmail, that was not an abstract risk.
Before Gmail launched, its test version kept crashing the browser. Buchheit worried his small project might never get past that problem.
What he was attempting, starting in 2001 as a simple email search, was to build Gmail largely in JavaScript so it could run inside a web browser. At the time, that idea was widely considered impractical.
Older webmail showed why. Each time a user clicked a message in services like Yahoo Mail, the browser reloaded the entire page, text, images, layout, and all. Buchheit wanted to avoid those full trips back to the server, because Google prized speed and the reloads made everything slow.
The fix was to write more and more of Gmail in JavaScript, the language browsers use to respond to clicks and update pages. A little used browser feature let Gmail quietly ask the server for new data without reloading the page.
But a generation of startups had already tried fully browser based programs, and failed. Buchheit recalled a Google executive telling him a friend had tried it, that it did not work, and that he should not do it.
Buchheit thought the skeptics were out of date. Browsers had improved just enough, and he believed he was building more carefully than those who had come before.
It was still barely possible. The best browser available was Microsoft's Internet Explorer 6, the Firefox browser was not yet out, and the team tested on early versions of Mozilla.
Some inside Google also feared Microsoft would break the programming tricks Gmail depended on, seeing Microsoft as a threat that could shut Google down. Instead, Microsoft issued one final update to Internet Explorer 6 that made it work better with Gmail.
Buchheit and his team learned to be careful with the fragile browsers, and eventually the crashes stopped. Gmail went on to show that a serious application could live on the web.
Questions people ask
What was Internet Explorer 6?
Internet Explorer 6 was Microsoft's dominant web browser, released in 2001. Websites were largely simple pages then, and IE 6 lacked many of the speed and safety features modern browsers have for running complex programs.
Why was reloading the whole page so slow?
Older sites sent a whole new page from the server for every click. Modern apps often request only the missing piece, like one email message, and update that part of the screen. That saves time and data and feels much faster.
What is JavaScript and why was it doubted?
JavaScript is the programming language that makes web pages interactive, handling clicks, typing, and screen updates. In 2001 it was little respected and seen as suited only for small touches, not for running a whole email program.
