Optimize timing of the tooltip