mhulse / html-dummies

Copy and paste starting points for HTML documents.
Apache License 2.0
5 stars 2 forks source link

Onload event #53

Open mhulse opened 8 years ago

mhulse commented 8 years ago

Make use of:

window.addEventListener('DOMContentLoaded', init, false);

as an alternative to jQuery's on document ready.

mhulse commented 8 years ago
window.addEventListener('DOMContentLoaded', methods.init);

… and false is default value.