-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Feature Request: webview persistence control #359
Comments
Great idea, thanks. I made it persistent by default and now existing |
Excellent - thanks! Looking forward to v2. |
Tried this using: webviewpersistent=false yet I still see a process in Activity Monitor for the page after first opened; was expecting SwiftBar webviews to act like Safari tabs, where when they're closed, all resources released. Let me know if I have the param or expectations wrong. Thanks - exciting to see the first 2.0.0 drop! |
This should be clearly marked as breaking change as it breaks logic of multiple plugins... I used to display on click graphs in webview. No I am getting the same graph over and over again. |
Let me re-phrase...
Still it makes webview display the same graph on each line. I need to refresh plugin again to see another graph. I would like to not force plugin refresh and be able to see separate graph on each line. So I suggest using separate parameter for refreshing plugin and for refreshing webview. That would allow for flexible control of plugin's behavior. |
I have the same issue as @chew-z - I don't want to refresh the plugin on every click (scheduling suits better), but I want the page in webview to reload on click, otherwise I'm seeing the same old content every time I click on the icon. I have a time-related Javascript there. "webviewpersistent=true|false" is not available as a parameter. |
Signed-off-by: Alex Mazanov <alexandr.mazanov@gmail.com>
@chew-z and @x-f thanks for your input, this approach makes sense to me. Updated as follows:
Web view will always refresh when Plugin refreshes, either on schedule or manually. |
Also, all detached web view windows close on desktop click, even when |
This is a bug, oppened an issue #397 |
When using a webview, the page stays open when hidden, but reloads when redisplayed. If this could be controlled via an action attribute, persistence and background resources could be tailored to the page.
E.g., when displaying a music website, staying open works great for streaming. But, it's interrupted on redisplay as the page reloads. On a complex page, significant resources can be used even when hidden.
If the persistence and load-on-display could be controlled via something like webviewpersistent=true to only load at initial display and stay open when hidden, and =false to close the page when hidden and reload on display, these two cases would be more useful.
The text was updated successfully, but these errors were encountered: