I\'ve been sifting around the web trying to find out whats going on here and I have not been able to get a concrete answer.
I have one $(document).ready
$(document).ready
In my case $(document).ready was firing twice because of bad CSS, check if any part of your CSS has background-image: url('');
background-image: url('');