Skip to content

Instantly share code, notes, and snippets.

@AaronNGray
Created October 2, 2018 11:21
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 AaronNGray/6bdbaa1ee9ca3fb818ec85e28cc75231 to your computer and use it in GitHub Desktop.
Save AaronNGray/6bdbaa1ee9ca3fb818ec85e28cc75231 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<!-- Copyright (c) 2018 Aaron Nathaniel Gray -->
<script>
document.addEventListener('WebComponentsReady', function() {
console.log("WebComponentsReady", Math.round(performance.now()));
document.body.appendChild(
document.createTextNode("WebComponentsReady: " + Math.round(performance.now()) + "ms")
);
document.body.appendChild(document.createElement("br"));
});
document.addEventListener('DOMContentLoaded', function() {
console.log("DOMContentLoaded", Math.round(performance.now()));
document.body.appendChild(
document.createTextNode("DOMContentLoaded: " + Math.round(performance.now()) + "ms")
);
document.body.appendChild(document.createElement("br"));
});
</script>
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.1.3/webcomponents-bundle.js"></script>
</head>
<body>
<h2>Hit F12 for Edge error.</h2>
SCRIPT438: Object doesn't support property or method 'bind' - extended-css.js (406,1)
<h2>Events</h2>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment