aspose file tools*
The moose likes Performance and the fly likes Improving page load time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Improving page load time" Watch "Improving page load time" New topic
Author

Improving page load time

Zaferullah Khan
Greenhorn

Joined: Mar 10, 2007
Posts: 17
Hello,
I am faced with a challenge of improving the page load time for my application pages. A typical page consists of a static Header and dynamic Body content and static Footer.
The header has a static Menu which is basically a richfaces provided menu component. On analysis it is found that this menu request takes awfully lot of time to execute.

I could think of these option to improve the performance.
1. Implement frames, with header and body and two separate frames. The body frame content alone will be loaded each time a menu item from header is selected. But this has other issue, where any popups in the body frame will be aligned to that frames only which should not happen. Also the header will always be displayed with only the body content scrollable. This is not desired.
2. Make Ajax request on click of a menu item in header. The entire body content will then be rendered through ajax response. This I suppose also has performance impact as ajax processing takes time.

Any new suggestions or comments on the above options will be of great help.

Thanks,
Zafer
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Image processing takes time for large or many images. If you remove all images from the page, the page load time should decrease significantly.
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
I would think a static menu wouldn't cause a performance issue. Does it communicate to the server? Does it use javascript on the client side to somehow render the menu. You need to give a little more info for us to go on. How did you find out that the menu is causing the performance problems?


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16233
    
  21

steve souza wrote:I would think a static menu wouldn't cause a performance issue. Does it communicate to the server? Does it use javascript on the client side to somehow render the menu. You need to give a little more info for us to go on. How did you find out that the menu is causing the performance problems?


Guess again. I had one that was pulling 3 MB every time the page updated. I switched to AJAX mode and it made a major difference, although I may yet revisit that, since I'm not especially happy about making JavaScript a mandatory requirement for visiting my site.

Frames can cause problems, and even moreso on the JSF platform.

One thing that can be a big help is to ensure that large invariant items are loaded separately and cached on the client.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Improving page load time