Pause rendering #4013
Answered
by
elalish
vogloblinsky
asked this question in
Q&A
Pause rendering
#4013
-
Hi, I am using ModelViewer inside a modal. Is it possible to pause rendering when the modal is not displayed ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
elalish
Dec 27, 2022
Replies: 1 comment
-
Rendering is automatically paused if the element is not visible on the page (checked via IntersectionObserver), so you should be good to go. It also won't render if nothing has changed, so if you haven't set |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vogloblinsky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rendering is automatically paused if the element is not visible on the page (checked via IntersectionObserver), so you should be good to go. It also won't render if nothing has changed, so if you haven't set
autorotate
and you haveinteraction-prompt='none'
, it won't re-render even if it's visible.