Decrease GPU usage when window is invisible
This commit is contained in:
parent
9fb8114691
commit
2d3b1918b3
6 changed files with 40 additions and 54 deletions
|
@ -72,6 +72,8 @@ addDecorator((storyFn /* , context */) => {
|
|||
document.body.classList.add('keyboard-mode');
|
||||
}
|
||||
|
||||
document.body.classList.add('page-is-visible');
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<ClassyProvider themes={['dark']}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue