Answer the question
In order to leave comments, you need to log in
Firefox Mozilla not taking images from cache when substituting via javascript?
When you hover over a page element, a background image is substituted via javascript. Substitution takes place exactly different images, for the possibility of the effect of their smooth change ( transition: background 0.3s linear
). For Firefox, I also tried with a prefix, but in the latest version (67.0.4) this CSS property should be supported anyway.
Here's how I do it in JS:
htmlElement.style = "background: url('/img/mainpage/img01.png') center top no-repeat";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question