Tuesday, 13 August 2013

Update HTML5 page text before render

Update HTML5 page text before render

I've written a small HTML5 page that I need to be able to support multiple
languages. I've implemented the language control by making the page load a
JSON file into memory (in the HEAD) and then running a jQuery command to
change the text of any element as required.
Everything works fine except that as the change is being called post
render (if the document ready function) there is a slight flash as the
language gets changed.
Is there an event that is called before the page is rendered but after the
DOM is available? If not, are there any suggestions to change
implementation.
Cheers..

No comments:

Post a Comment