Answers for "how to call something before document ready and something on document ready"

33

document ready javascript vanilla

document.addEventListener("DOMContentLoaded", function() {
  // code
});
Posted by: Guest on April-02-2020
8

javascript run document ready

document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});
Posted by: Guest on May-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language