On DOM Ready in JavaScript

Posted by yhuang
Public (Editable by Users)
JavaScript
None
Edit
document.addEventListener('DOMContentLoaded', function(event) {
	console.log('ready');
});