1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:55:55 +00:00

fix excessive CPU usage on linux chromium caused by animated SVG icons

This commit is contained in:
Andrew Dolgov
2021-03-17 19:28:20 +03:00
parent db0315e596
commit 968270ed48
9 changed files with 27 additions and 32 deletions

View File

@@ -283,8 +283,8 @@ const Article = {
row.setAttribute("data-content", row.getAttribute("data-content-original"));
row.removeAttribute("data-content-original");
row.querySelector(".content-inner").innerHTML = `<div class="text-center">
<img class="icon-unpack-pending" src="${App.getInitParam('icon_three_dots')}">
row.querySelector(".content-inner").innerHTML = `<div class="text-center text-muted">
${__("Loading, please wait...")}
</div>`
}
},

View File

@@ -533,8 +533,8 @@ const Headlines = {
<div class="content" onclick="return Headlines.click(event, ${hl.id}, true);">
${Article.renderNote(hl.id, hl.note)}
<div class="content-inner" lang="${hl.lang ? hl.lang : 'en'}">
<div class="text-center">
<img class="icon-unpack-pending" src="${App.getInitParam('icon_three_dots')}">
<div class="text-center text-muted">
${__("Loading, please wait...")}
</div>
</div>
<div class="intermediate">
@@ -749,6 +749,9 @@ const Headlines = {
hsp.id = "headlines-spacer";
}
// clear out hsp contents in case there's a power-hungry svg icon rotating there
hsp.innerHTML = "";
dijit.byId('headlines-frame').domNode.appendChild(hsp);
this.initHeadlinesMenu();
@@ -800,6 +803,9 @@ const Headlines = {
hsp.id = "headlines-spacer";
}
// clear out hsp contents in case there's a power-hungry svg icon rotating there
hsp.innerHTML = "";
c.domNode.appendChild(hsp);
this.initHeadlinesMenu();