Attach load event to window for script tags in head & rename flag to LOADED_SYNC