Select your preferred scripting language. All code snippets will be displayed in this language.
History
Checks if banner contents are loaded.
You should hide banner if it is not loaded to avoid showing blank view.
if(banner.visible && !banner.loaded) banner.visible = false;