You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new window using WebviewWindow, I can only use tauri://created to listen for window creation. However, this event triggers much earlier than the actual page load completion.
Currently, if I need to inject JavaScript after the page is fully loaded, I have to:
Use WebviewWindowBuilder::new(&app_handle, &label, url_parse).on_page_load in the backend
Emit an event to notify the frontend
The challenge is that I'm not familiar with backend development in Rust, and I have to rely on my friend to help implement these backend methods.
Technical Context:
Current approach requires backend implementation
Frontend developers need a more accessible way to handle post-load operations
Similar to how browsers provide window.onload event
thanks
Describe the solution you'd like
Add a frontend event listener for page load completion (similar to tauri://pageLoad)
Add frontend API for JavaScript injection
This would greatly improve the developer experience for frontend developers who are not yet proficient in Rust but need these functionalities for their projects.
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
When creating a new window using
WebviewWindow
, I can only usetauri://created
to listen for window creation. However, this event triggers much earlier than the actual page load completion.Currently, if I need to inject JavaScript after the page is fully loaded, I have to:
WebviewWindowBuilder::new(&app_handle, &label, url_parse).on_page_load
in the backendThe challenge is that I'm not familiar with backend development in Rust, and I have to rely on my friend to help implement these backend methods.
Technical Context:
window.onload
eventthanks
Describe the solution you'd like
tauri://pageLoad
)This would greatly improve the developer experience for frontend developers who are not yet proficient in Rust but need these functionalities for their projects.
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: