This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Improving page load time

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 24330
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic