Is there a way to make this snippet fire off ONLY if my own IP is visiting the site?
$('#preloader').delay(5555).fadeOut(1234,function(){
$(this).remove();
});
Something like (pseudo-code):
“IF ip is NOT 127.0.0.1, do nothing.”
(I’m open to a PHP solution if that would be easier.)
Thanks!
Javascript cannot get the IP of the visitor, so a sever-side solution is the only one possible. Try this: