I have a "NEW" image that displays at the top of the page, if there is new data. I had two loops(server side) on the page looping through data; the first time to see if there was something new, and then the second time to display the data.
To improve performance I was hoping to delete the first loop, and set the "NEW" image to display:none. Then on the data loop set some flag to pass to the client to go back up the DOM(Jquery) and turn the "NEW" image back to display:block. Obviously, there is no event like click or mouseover, only the onload. I am thinking maybe check if a variable is defined somehow in the ready function? I am not sure how to do this. Any help is appreciated. Jared