Home › Forums › JavaScript › Help w/ Running Multiple Javascripts › Reply To: Help w/ Running Multiple Javascripts
October 27, 2019 at 12:28 am
#297940
Participant
DOMContentLoaded aside for now, and going back to my previous post, have you tried putting the script above the closing body element? So that the markup comes first (as per the tutorial). It worked when I tried it the other day.
document.addEventListener('DOMContentLoaded', function () {
/* your script here */
});
You can use your developer console (F12) to check for JS errors then hit up Google to find then and learn more about event listeners.