• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

portlet load time

 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • 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.
 
K Riaz
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic