You could probably even automate this via <meta http-equiv="refresh">, along the lines of (untested):
<meta http-equiv="refresh" content="5; url=http://example.org/?query-port=43"> <link rel="stylesheet" href="http://127.0.0.1:42"> <img src="http://example.org/?checked-port=42">
You could probably even automate this via <meta http-equiv="refresh">, along the lines of (untested):