Only trigger active menu when document is ready