main js loadergif wait, temp fix layoutComplete