i was using jquery to set an element's css background-image inside $(document).ready(function()... , and when i removed that code th page would load once instead of twice:
var url = el.data("imgbg"); // get the url string
el.css("background-image", "url('"+url+"')"); // set bgimg url
what was causing the extra page reload/GET request was an empty url string!
putting a simple if-test on url fixed it:
if (url != "") el.css("background-image", "url('"+url+"')");
:)
my fiddle confirming this behavior:
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.