Hallo,
Lighthouse über Chrome meckert zwei Dinge im template an - es geht um folgende Zeile in mod_visitors_fe_invisible.html5
PHP-Code:
document.write('<img class="invisible" src="<?= $this->route('visitors_frontend_screencount') ?>?vcid=<?= $visitor['VisitorsKatID']; ?>&scrw='+sWidth+'&scrh='+sHeight+'&scriw='+iWidth+'&scrih='+iHeight+'">');
... kein 'alt' für Screenreader
Als Abhilfe habe ich einen dummy-alt eingefügt
PHP-Code:
document.write('<img class="invisible" alt="invisible" src="<?= $this->route('visitors_frontend_screencount') ?>?vcid=<?= $visitor['VisitorsKatID']; ?>&scrw='+sWidth+'&scrh='+sHeight+'&scriw='+iWidth+'&scrih='+iHeight+'">');
... und 'document.write'
For users on slow connections, external scripts dynamically injected via `document.write()` can delay page load by tens of seconds
Gibt es hier Verbesserungspotential?
Lesezeichen