document.addEventListener('DOMContentLoaded', updateLogo);

Modern