I am building a Modal window/overlay with CSS and Javascript for an email subscription form.
My plan is to Show the Modal when a visitor comes to a website and does not have a cookie set. I then set that cookie when they submit the form or click the close button I have on the Modal window. So on repeat visits if the cookie is there they will not have to see it.
The Modal windows has a background image that is around 75kb so I am trying to come up with the best solution to avoid users loading this image if there cookie is set (I realize it will likely be cached by tis stage)
So my question, in a CSS file for a class/id that has a Background image set, if that class/id has a property set to be hidden display: none;
will it still download the image?