<commit_before>/* @flow */
import './vendor';
import ReactDOM from 'react-dom';
import routes from './routes';

setTimeout(() => {
  ReactDOM.render(routes, document.querySelector('#webedit'));
}, 500);
<commit_msg>Use a dom ready event instead of timeout speculations<commit_after>/* @flow */
import './vendor';
import ReactDOM from 'react-dom';
import routes from './routes';

document.addEventListener('DOMContentLoaded', () => {
  ReactDOM.render(routes, document.querySelector('#webedit'));	
});

{'fraction_non_alphanumeric': 0.17764471057884232, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 5.693333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1399421', 'n_tokens_mistral': 144, 'n_tokens_neox': 148, 'n_words': 39}