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
{{ message }}
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
I made that when we set theme, we change src of recommendation <img>, which
might seem okay, but Firefox after doing nothing for few minutes, when later
changing theme, it would change image after some time. Chromium from what I
understand, if we also leave it for some time, when changing theme it would
actually take some time to apply theme, which I feel is because of these <img>s, I could be wrong here though. Another thing is that it only works
with JavaScript enabled, which I would like to avoid.
So there is <picture> tag which we could use to specify few sources so we
could easily change image depending on @media, which would allow us to make
it work without JavaScript and probably fix these bugs.
I made that when we set theme, we change
src
of recommendation<img>
, whichmight seem okay, but Firefox after doing nothing for few minutes, when later
changing theme, it would change image after some time. Chromium from what I
understand, if we also leave it for some time, when changing theme it would
actually take some time to apply theme, which I feel is because of these
<img>
s, I could be wrong here though. Another thing is that it only workswith JavaScript enabled, which I would like to avoid.
So there is
<picture>
tag which we could use to specify few sources so wecould easily change image depending on
@media
, which would allow us to makeit work without JavaScript and probably fix these bugs.
<picture>
on MDN:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture
The text was updated successfully, but these errors were encountered: