Skip to content

Instantly share code, notes, and snippets.

@bdsexton bdsexton/load.js
Created Feb 1, 2015

Embed
What would you like to do?
Non-Destructive load-Event Handler
window.addEventListener("load", function(event) {
console.log("Hello! Non-destructive load-event handlers are the best kind! Don't you agree?");
console.log("load event: %o", event);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.