function init() { if (!document.getElementById("app")) { setTimeout(init, 50); return; } if (!window.jQuery) { setTimeout(init, 50); return; } $("#app").show(); } init();