react-domcontentloaded
A react component that inserts WebReflection's DOMContentLoaded fix for async scripts.
Read this blog post for details about how you might be bitten by using the DOMContentLoaded event in conjunction with <script async …>
: http://webreflection.blogspot.no/2014/02/the-underestimated-problem-about-script.html
Please note: This component ONLY make sense for server side rendering, e.g. using ReactDOM.renderToStaticMarkup
or ReactDOM.renderToString
.
Usage
var DOMContentLoadedFix = var Chrome = React