Update loading logic

If iFrame is already loaded (by checking readystate) resize straight away without waiting for load event