Make script loading synchronous.