Waiting for the DOM to be ready in Javascript
When you're working with Javascript, you're likely to have run into a pretty common problem: if your Javascript appears before your HTML, then trying to do things like attach events to your HTML is not possible. For example, consider this code:
<!DOC...
fjolt.hashnode.dev2 min read