try not lazy-loading images in chat to make shit faster

master
Aevann 2023-08-24 05:17:58 +03:00
parent 6b927aa95a
commit e99fe52ab0
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ socket.on('speak', function(json) {
document.getElementsByClassName('chat-line')[0].id = json.id
document.getElementsByClassName('text')[0].innerHTML = escapeHTML(text)
document.getElementsByClassName('chat-message')[0].innerHTML = text_html.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '')
document.getElementsByClassName('chat-message')[0].innerHTML = text_html.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '').replace(/ loading="lazy"/g, '')
document.getElementsByClassName('quotes')[0].classList.add("d-none")
if (json.quotes) {