tZ
04-04-2008, 02:47 PM
Using AJAX I have noticed that the application of styles to content added to the page using innerHTML is somewhat delayed. Is there a way to resolve this? For example, a site I am currently working on handles all navigation using ajax – without reloading the page. However, when a new "page" is navigated to by the user there is a slight flicker before the styles within the style sheet are applied. Therefore, I am wondering if there might be away to avoid this flicker. The only option I myself was considering is hiding the division that the content is added right before it is dumped in using HTML. Than after the content has been added showing the division again. Is this viable solution or is there a better way?