that means that if windows focus has changed, all the content has been created. In your previous code, there is a possibility that condition did not work because all the content has not been loaded yet.