<script>
    function fadeInPage() {
      if (!window.AnimationEvent) { return; }
      var fader = document.getElementById('fader');
      fader.classList.add('fade-out');
    }
  
    document.addEventListener('DOMContentLoaded', function () {
      if (!window.AnimationEvent) { return }
  
      var anchors = document.getElementsByTagName('a');
  
      for (var idx = 0; idx < anchors.length; idx += 1) {
        if (anchors[idx].hostname !== window.location.hostname ||
            anchors[idx].pathname 