Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


Table of Contents Previous Section

Limit Page Sizes

Be aware of the size of the HTML pages that you are downloading to the client machine. The larger the page, the more time it takes to download and draw. At first glance, your component's HTML might not seem unreasonably large; however, be sure you take into account the following:

Another reason a page might take a long time to draw is if the action that generates it takes a long time to perform. If this is the case, you can implement a WOLongResponsePage. WOLongResponsePage is an abstract subclass of WOComponent defined in the WOExtensions framework. When you use WOLongResponsePage, it displays a status page while the action is being performed and then displays your page upon completion. For an example of how to use WOLongResponsePage, see the LongRequest example in /System/Developer/Examples/WebObjects/ObjectiveC/LongRequest (on Windows NT systems, NeXT_ROOT\Developer\Examples\WebObjects\ObjectiveC\LongRequest). Be sure to review HandlingLongRequests.rtf, which explains the workings of this example and the WOLongResponsePage component.

Table of Contents Next Section