document.addEventListener('DOMContentLoaded', () => {
  window.setupGol();
  window.navUpdate(true);
  window.setupLaptops();
  // Initialize the top laptop
  window.headerLaptop = new window.Laptop(document.getElementById('header-wrapper').getElementsByClassName('laptop3d')[0], -1);

  window.onscroll();

  setTimeout(window.browserCheck, 1000);

  // Configure scrolling when down indicator clicked
  document.getElementsByClassName('down-indicator')[0].addEventListener('click', () => {
    window.scrollTo({ top: window.innerHeight / 2, behavior: 'smooth' });
  });
});

document.addEventListener('DOMContentLoaded', () => {
  setTimeout(window.browserCheck, 1000);

  window.setupGol();
  window.navUpdate(true);
  window.setupLaptops();
  // Initialize the top laptop
  window.headerLaptop = new window.Laptop(document.getElementById('header-wrapper').getElementsByClassName('laptop3d')[0], -1);

  window.onscroll();

  // Configure scrolling when down indicator clicked
  document.getElementsByClassName('down-indicator')[0].addEventListener('click', () => {
    window.scrollTo({ top: window.innerHeight / 2, behavior: 'smooth' });
  });
});

Move browser checking before any other scripts
Move browser checking before any other scripts

Therefore if an exception is thrown in any of the scripts, browser checking can still be properly run, allowing users on incompatible browsers to be informed of that.
