mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
reduce requestIdleCallback timer to 300ms
This commit is contained in:
parent
d6effafd7b
commit
5531e75c7b
@ -55,7 +55,7 @@ const RenderIfVisible: React.FC<Props> = (props) => {
|
||||
(entries) => {
|
||||
if (typeof window !== undefined && window.requestIdleCallback) {
|
||||
window.requestIdleCallback(() => setShouldVisible(entries[0].isIntersecting), {
|
||||
timeout: 600,
|
||||
timeout: 300,
|
||||
});
|
||||
} else {
|
||||
setShouldVisible(entries[0].isIntersecting);
|
||||
|
Loading…
Reference in New Issue
Block a user