add loadScript when http request is not available