2808 explained code solutions for 75 technologies


javascriptDocument ready callback (jquery $(document).ready equivalent)


document.addEventListener('DOMContentLoaded', function(event) { 
  console.log('Content loaded');
});ctrl + c
document.addEventListener

adds new event listener

DOMContentLoaded

fired when html was parsed but styles/images/videos not yet loaded (details)

console.log('Content loaded')

replace with your code to run when document was loaded