• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Improving page load time

 
Zaferullah Khan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic