Did you try using the timeout approach that I mentioned earlier?
Additionally, you might try using the Developer Tools (F12) within your browser to ensure that no errors are present in the Console section. Or consider posting your entire code for the affected page and we might be able to spot out an issue if there is one.