wait for page load js
snippet in javascript

wait for page load js

user3763

window.addEventListener('load', function () {
  
})

//THE OTHER ANSWER IS WRONG (has a syntax error)