Skip to content

Instantly share code, notes, and snippets.

@sefeng211
Created February 8, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sefeng211/1c026df5d440bd56a7698f2e0d3d7de4 to your computer and use it in GitHub Desktop.
Save sefeng211/1c026df5d440bd56a7698f2e0d3d7de4 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<h1>Dondon</h1>
<iframe width="400" height="500" src="http://sefeng.me/testing/slow_response_2.html"></iframe>
<p id="parent_onload"></p>
<script>
window.onload = function() {
let onloadStart = performance.now();
console.log("Parent OnLoad Event Starts At: " + onloadStart);
let text = "Parent OnLoad Event Starts At: " + onloadStart;
document.getElementById("parent_onload").innerHTML = text;
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment