Skip to content

Response generation gets paused, when shifting the focus off the AIChat #39

Closed Answered by salmenus
whisper-ai-team asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @whisper-ai-team

You're seeing that "pause" because we use the web API requestAnimationFrame to perform the text animation.

The advantage of using requestAnimationFrame is that the text appearance animation is faster, and can even be hardware-accelerated if you have a GPU, etc.

The downside is that some browsers (like Chrome) would pause animation when the tab or window is not displayed, which means that your generated text's animation will also pause when the tab is not active.

Here is what I suggest:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@whisper-ai-team
Comment options

Answer selected by salmenus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants