leafiy
5/18/2018 - 6:53 PM

domready #js

none

var DOMReady = function(a, b, c) {
  b = document
  c = 'addEventListener'
  b[c] ? b[c]('DocumentContentLoaded', a) : window.attachEvent('onload', a)
}

DOMReady(function () {
  alert('The DOM is Ready!');
});