i2ptunnel: Force CSS load before render on proxy error pages

to prevent "FOUC" https://dev.to/fbnlsr/how-to-get-rid-of-the-flash-of-unstyled-content-5e7
as recommended by drzed.

Not supported by firefox: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link
May followup with a different or more elaborate solution later, perhaps borrowed from plus.
This commit is contained in:
zzz
2025-04-24 12:59:38 -04:00
parent b360b22143
commit 10c249ff6e
20 changed files with 20 additions and 20 deletions

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Destination Key Conflict")</title> <title>_("Warning: Destination Key Conflict")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -12,7 +12,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<head> <head>
<title>_("Information: New Host Name")</title> <title>_("Information: New Host Name")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body id="proxyNewAddressHelper"> <body id="proxyNewAddressHelper">
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Bad Address Helper")</title> <title>_("Warning: Bad Address Helper")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Authorization Required")</title> <title>_("Warning: Authorization Required")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Website Unreachable")</title> <title>_("Website Unreachable")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Invalid Request URI")</title> <title>_("Warning: Invalid Request URI")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Request Denied")</title> <title>_("Warning: Request Denied")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Website Unreachable")</title> <title>_("Website Unreachable")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Invalid Destination")</title> <title>_("Warning: Invalid Destination")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -12,7 +12,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<head> <head>
<title>_("Website Unknown")</title> <title>_("Website Unknown")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -12,7 +12,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<head> <head>
<title>_("Outproxy Not Found")</title> <title>_("Outproxy Not Found")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Website Unreachable")</title> <title>_("Website Unreachable")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Outproxy Unreachable")</title> <title>_("Outproxy Unreachable")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Error: Request Denied")</title> <title>_("Error: Request Denied")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<!----------------------------- <!-----------------------------

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Website Unreachable")</title> <title>_("Website Unreachable")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Outproxy Not Found")</title> <title>_("Outproxy Not Found")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: No Outproxy Configured")</title> <title>_("Warning: No Outproxy Configured")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Warning: Non-HTTP Protocol")</title> <title>_("Warning: Non-HTTP Protocol")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Connection Reset")</title> <title>_("Connection Reset")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">

View File

@ -11,7 +11,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<html><head> <html><head>
<title>_("Connection Reset")</title> <title>_("Connection Reset")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico"> <link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css"> <link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<div class="logo"> <div class="logo">