Step-by-step JavaScript bundle loading after window.onload