bootstrap immediately if document.readyState === 'complete', otherwise wait for 'DOMContentLoaded' instead of 'load'