How to make JS change the content (HTML/CSS) of a website randomly and make it storage in cache?
Lets suppose I have two HTML blocks I want to display in a page. One is a red with number 1 inside, and the other is a green with number 0 inside. And I want to make it display randomly on page load, one time the green , the other time the red .
I am starting with JavaScript, and my knowledge is still very shallow
Thanks in advance