ToolTip Performance in XPages -
i have large xpage 170 fields on it. have tooltips fair number of fields. tooltip lookup db , returns related text. work fine slow down load process because of number of times lookup performed. put dbar.info statement in js loads text , in 1 load document , put edit mode appear have fired 1 tooltip lookup 6 times. if every 1 of tooltips reason slow performance of xpage. did both dynamiccontent set both true , false similar results. i'm tempted remove tool tips kind of defeats purpose. there way limit tooltip fire lookup when called? linked mouseover event. seems me tooltip in extension library works ok if there few fields requiring inline not scale well. test removed tooltips xpage , while loading slow acceptable, tooltips slow point of unacceptability.
bill, excellent use case applicationscope bean. create bean implements map , uses internal hashmap cache. let's call tooltip. in tooltip define label el e.g. tooltip['manager']. xpages call function. in check internal hashmap if have value, otherwise up. lookup happens once only.
you instead of looking on demand opt loading when initialized. using view navigator should fast. since application scope loaded once.
makes sense?
Comments
Post a Comment