Last post Feb 02, 2012 02:09 PM by TBarton
Jan 28, 2012 06:28 PM|TBarton|LINK
Hello all, I'm looking for advice on ways to make my site more efficient.
I have singular page that contains a tab container. The page has unknown number of tabs representing Servers in our organization.
Each tab will have various labels, text boxes, and chart controls.
Because of all the unknowns I have to create everything dynamically.
Right now all everything is done on the page int. Currently it takes about 1 minutes for the page to load. If it was just this I could live with it but on each tab I have various controls that are hidden at load to be shown with a button click as well as
changing the chart controls so every time I want to make a change to a tab the entire page reloads which means a minute wait each time.
Each tab has two sections and I have two update panels on each tab thinking I could get just those sections to update but while I do not get the page flash it still takes a minute to make the change.
I'm open to any suggestions on reducing the load time or dealing with the tab changes. Being that every thing must be dynamic makes this difficult.
Jan 28, 2012 10:51 PM|Trolderik|LINK
you can use conditional updatemode for your updatepanels,
here's a video by Joe Stagner on how it works
and here is another on
implemeting dynamic partial-page updates using ajax, also by
Jan 29, 2012 10:31 AM|ramiramilu|LINK
Dont get everything on page load or init...as you said you have tabcontainer just get only first tab data and controls in page init...then afterwards load on demand, in mean to say of user choose thrid tab then get that data....
Loading unwanted data at first is not a good preactise in performance..
you can use JQuery or ajax for getting more intuitive loading...
Jan 30, 2012 12:09 AM|marko4|LINK
what is taking the whole minute ?
is it the data transfere, or the processing of the page,
try calculating the time take to execute the actions and functions, and try to find which specific functions are using most time.
Feb 02, 2012 02:09 PM|TBarton|LINK
Ultimately I did decide to load the tabs on demand. Not what I wanted to do as there is a couple second delay when clicking on the tabs but only fix when everything is dynamic.
Thanks for everyone's input.