# ready **Repository Path**: mirrors_WebReflection/ready ## Basic Information - **Project Name**: ready - **Description**: A pattern to bootstrap any JavaScript on DOMContentLoaded - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ready A pattern to bootstrap any JavaScript on DOMContentLoaded. [Live test](https://webreflection.github.io/ready/). ## the pattern ```html ``` ## in a nutshell * all browsers with native [Promise](https://caniuse.com/#feat=promises) support won't ever use `document.write` * all browser that don't have native `Promise` won't ever have issues with `document.write` * the two different ` ``` You read that correctly, the `DOMContentLoaded` event reaches the global `window` too. ### license ? You can do whatever you want with this pattern, I haven't invented anything. However, be sure the used Promise polyfill license is compatible with your project. The proposed [es6-promise](https://github.com/stefanpenner/es6-promise) one uses a MIT License.