1 Reply Latest reply on Jul 18, 2014 1:48 AM by smenegassi

    Strange BG image issue change with JQuery

    Fagan Level 1

      I'm using Jquery to change my BG image on click

       

       

      jQuery('#ID').css('background-image','url(\'images/IMAGE-HERE.jpg\')');

       

       

      I have multiple triggers through my website that target the same element. It works perfect for a while, then if I leave it for 10 secs and start clicking again it starts delaying the image loading. In network I can see it's getting the image each time. How can I use edge to pull it from the cache? I think this is a cache issue but maybe edge is messing with it.

       

      Demo here..

       

      http://steaklab.com.au/ctm/fatal-distraction/