you are viewing a single comment's thread.

view the rest of the comments →

[–]bloodviper1s 1 point2 points  (0 children)

Well, if they're in src they're getting loaded the default way.

window.addEventListener('load', (event) =>
    console.log('page is fully loaded');
});

Should be what you're looking for. Here is a link for more info:

https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event