<commit_before><%= header %>
<%= boomerangSnippet %>
<script src="./12-clearResourceTiming.js"></script>
<script src="../../vendor/resourcetiming-compression/src/resourcetiming-decompression.js" type="text/javascript"></script>

<script>
	document.addEventListener("onBoomerangLoaded", function() {
		var where = document.getElementsByTagName("script")[0].parentNode;
		var script = document.createElement("script");
		script.src = "./support/one.js";
		script.addEventListener("load", function() {
			window.performance.clearResourceTimings();

			script = document.createElement("script");
			script.src = "./support/two.js";
			script.addEventListener("load", function() {
				window.performance.clearResourceTimings();
				BOOMR.page_ready();
			});
			where.appendChild(script);
		});
		where.appendChild(script);
	});
</script>

<script>
BOOMR_test.init({
	autorun: false,
	testAfterOnBeacon: true,
	ResourceTiming: {
		enabled: true,
		monitorClearResourceTimings: true
	}
});
</script>
<%= footer %>
<commit_msg>11-restiming/12-clearResourceTiming: Change Boomerang load timing to fix potential race condition<commit_after><%= header %>
<%= boomerangSnippet %>
<script src="./12-clearResourceTiming.js"></script>
<script src="../../vendor/resourcetiming-compression/src/resourcetiming-decompression.js" type="text/javascript"></script>
<script>
BOOMR_test.init({
	autorun: false,
	testAfterOnBeacon: true,
	ResourceTiming: {
		enabled: true,
		monitorClearResourceTimings: true
	},
	onBoomerangLoaded: function() {
		if (window.performance) {
			var where = document.getElementsByTagName("script")[0].parentNode;
			var script = document.createElement("script");
			script.src = "./support/one.js";

			script.addEventListener("load", function() {
				window.performance.clearResourceTimings();

				script = document.createElement("script");
				script.src = "./support/two.js";

				script.addEventListener("load", function() {
					window.performance.clearResourceTimings();

					BOOMR.page_ready();
				});

				where.appendChild(script);
			});

			where.appendChild(script);
		}
	}
});
</script>
<%= footer %>

{'fraction_non_alphanumeric': 0.16611764705882354, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 4.922005571030641, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '6719157', 'n_tokens_mistral': 750, 'n_tokens_neox': 657, 'n_words': 101}