Add defer script on to redirect page.
<html>
<head>
<title>Portier &ndash; Forwarding...</title>
- <script src="/static/forward.js"></script>
+ <script src="/static/forward.js" defer></script>
</head>
<body>
<form id="form" action="{{ redirect_uri }}" method="post">
