before the loading & postMessage