• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

portlet load time

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
When my portal gets loaded (has 4 protlets), it takes ages to come up. I need to improve page load time when in one of the portlets the url is not available. I feel that somehow each of the portlets get loaded and then they all are displayed together. That might be the reason when one portlet takes time to load, the entire portal loads in alot of time. Please suggest, is using iframe for this particular portlet a good solution.

thanx in anticipation.
Robbie
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A portal like JetSpeed will remember if one of the remote URLs is not available, and not try to load it again. Thus the first time it takes a minute or so to time out (possibly for each of the URLs), but afterwards it should be much faster.
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by robbie keane:
Hi,
When my portal gets loaded (has 4 protlets), it takes ages to come up.



Enable caching in your portlets to avoid the render() method from being fired everytime any portlet loads or refreshes (as a consequence of a POST request from another portlet). In the portlet.xml file, add a <expiration-cache> value. This is the number of seconds after which the content of the portlet "the view" is considered stale. Remember, the portlet container will not fire the render() of the portlet until after the cache expires.
 
ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic