What Is Server Push?

Slow loading, or incremental, documents are difficult to use in a traditional Web page because of the Web's page-at-a-time nature. Consider, for example, a page that runs a CGI program that takes a long, long time to run. First, the browser might time-out waiting for the CGI program to finish. Browsers typically wait about 90 seconds for results and then display a message saying that the site is unreachable.

Second, the CGI program can print a message occasionally stating, "I'm still working, 10% complete," and a few moments later, "I'm still working, 20% complete," and so on. Printing these messages is fine, except for the fact that the messages might not appear at regular intervals—because of buffering—and that when you're ...

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.