Skip to content

Commit

Permalink
[FIX] high cpu usage ~ svg icon (#12677)
Browse files Browse the repository at this point in the history
Closes RocketChat/Rocket.Chat.Electron#740

Colleagues of mine found the issue why the CPU usage of rocket.chat is so high.
It's because of `animateTransform` inside `./packages/rocketchat-ui-master/public/icons.svg`.
I've removed it and replaced by a CSS animation.
  • Loading branch information
ph1p authored and ggazzo committed Nov 20, 2018
1 parent f55c483 commit 52891ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ html.rtl .attachment {
& .attachment-pdf-loading {
display: none;

animation: spin 1s linear infinite;

font-size: 1.5rem;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-master/public/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@

cursor: pointer;

animation: spin 1s linear infinite;

&.active {
display: flex;
}
Expand Down

0 comments on commit 52891ae

Please sign in to comment.