Add custom domready event listener polyfill.