I want to load a Javascript file after the page has fully loaded and I understand if this will affect the page load time.
I am doing something like the below:
window.addEventListener('load', () => {
loadScript('https://example.com/script.js')
})
Will doing something like this affect page load time, speed index or time to interactive?
