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 using the onLoad$ property on an \<img\> tag in a Qwik component, you might encounter an issue where the onLoad$ event doesn't fire when the image is already cached in the browser.<br/>
13
+
In that case the onLoad$ logic is not being triggered.<br/>
14
+
This behavior is observed during normal navigation, but not when browser caching is disabled, indicating the cache's impact on the event.<br/>
15
+
The key point here is to [get hold of a DOM element](https://qwik.dev/docs/components/overview/#getting-hold-of-dom-element) to detect onLoad correctly.
0 commit comments