Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

Commit

Permalink
🐎 Limit progress animation
Browse files Browse the repository at this point in the history
to run only for 30s. This will remove the risk of having it run forever and taxing CPU

See issue atom/atom#6646
  • Loading branch information
simurai committed Aug 13, 2015
1 parent 51fa212 commit 3c5d608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion styles/progress.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ progress {
@progress-shine-gradient;
border-radius: 2px;
background-size: 25px @progress-height, 100% 100%, 100% 100%;
-webkit-animation: animate-stripes 5s linear infinite;
-webkit-animation: animate-stripes 5s linear 6; // stop animation after 6 runs (30s) to limit CPU usage
}

progress::-webkit-progress-bar {
Expand Down

0 comments on commit 3c5d608

Please sign in to comment.