Skip to content

Instantly share code, notes, and snippets.

@metaskills metaskills/ready.js
Created Jan 10, 2018

Embed
What would you like to do?
When Are Things Ready?
document.addEventListener('DOMContentLoaded', function(){
console.log('DOMContentLoaded');
});
document.addEventListener('turbolinks:load', function(){
console.log('turbolinks:load');
});
jQuery(function(){
console.log('jQuery Document Ready');
});
// DOMContentLoaded
// turbolinks:load
// jQuery Document Ready
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.