Fix: previewFallback blendet kaputte Bilder aus statt Fragezeichen, SW by-v1110
User-Report: nach Sprint-Migration auf _preview.webp tauchen Fragezeichen-Icons auf — wenn weder Preview noch Original verfügbar. Probleme im vorigen Fix: - UI.escape() ist HTML-Escape, kein JS-String-Escape → URL mit ?param=value wurde &-encoded und damit kaputt - 'opacity:0.3' lässt das Browser-Default-Broken-Image-Icon durchscheinen (Fragezeichen sichtbar) - Kein Loop-Schutz beim onerror Fixes: - String-Escape via .replace(/'/g, \"\\'\") statt UI.escape() - display:none + .img-broken-Klasse bei finalem Fehler - dataset.fb='1' verhindert Endlos-Loop wenn Original-URL auch 404 - Wenn URL nicht mit /media/ startet: direkt ausblenden (keine Preview-Variante zu probieren)
This commit is contained in:
parent
2f37e0ed16
commit
8e75e2b1a7
6 changed files with 24 additions and 19 deletions
|
|
@ -86,14 +86,14 @@
|
|||
<title>Ban Yaro</title>
|
||||
|
||||
<!-- Theme + theme-color Statusleiste vor CSS setzen -->
|
||||
<script src="/js/boot-early.js?v=1109"></script>
|
||||
<script src="/js/boot-early.js?v=1110"></script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1109">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1109">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1109">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1109">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1109">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1110">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1110">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1110">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1110">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1110">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -617,11 +617,11 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=1109"></script>
|
||||
<script src="/js/ui.js?v=1109"></script>
|
||||
<script src="/js/app.js?v=1109"></script>
|
||||
<script src="/js/worlds.js?v=1109"></script>
|
||||
<script src="/js/offline-indicator.js?v=1109"></script>
|
||||
<script src="/js/api.js?v=1110"></script>
|
||||
<script src="/js/ui.js?v=1110"></script>
|
||||
<script src="/js/app.js?v=1110"></script>
|
||||
<script src="/js/worlds.js?v=1110"></script>
|
||||
<script src="/js/offline-indicator.js?v=1110"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
@ -631,7 +631,7 @@
|
|||
|
||||
|
||||
<!-- Boot: Offline-Banner + SW-Registration (extrahiert für CSP) -->
|
||||
<script src="/js/boot.js?v=1109"></script>
|
||||
<script src="/js/boot.js?v=1110"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue