-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues on new background tab in Safari #1171
Comments
Hello @toooni, try out the setting: {
booster: {
detection: {
battery: false
}
}
} I suspect that the video check is stuck, but I immediately noticed improvements in safari, even in dev mode. |
Hi @ThornWalli Btw. I am in no specific battery mode. I've got a plugged in M4 MacBook. |
I think this point is causing problems, video is started, then nothing happens. Possibly combine with document.hidden, or rethink the function. nuxt-booster/src/runtime/utils/entry.js Lines 95 to 108 in a75b86b
|
@ThornWalli But shouldn't this then result in an error in the console? I don't see an error related to this code. |
In this case, the Suspect the inactive tab. About the function: This checks with a muted video can be played, in case of energy saving mode this is not possible and gives an error. |
Oh. Now I see. You are absolutely right. This is the cause of the problem. |
@toooni You can take a look at #1173 I added a timeout to the video, in Safari the video call seems to stop at the second tab. If there is no error because of no play, the timeout should activate. Is ready to be tested via And I moved the check on |
Describe the bug
We've experienced an issue with Safari when using Cmd+Click on a link (Tab opens in background). The created tab doesn't run any JS when switching to it (wait a few seconds beforehand). This seems to be reproducable on the Playground page with the Iframe site.
In the console (on our website) I've got this error for each of the
link
tags withrel="modulepreload"
:To Reproduce
Steps to reproduce the behavior:
cmd
(2x times)Screenshots
https://github.com/user-attachments/assets/d88513f1-3c6c-411e-b213-27b87a3c8683
Desktop:
The text was updated successfully, but these errors were encountered: