I am attempting to create a fading effect on my homepage that is consistent every time it loads. Unfortunately, the current script I have only seems to work sporadically. The code I am currently using sets the fade effect on the html element since applying it to individual div elements proved unsuccessful. However, even with this adjustment, the script sometimes works and sometimes doesn't.
$(document).ready(function () { $('html').hide().fadeIn(1500).delay(6000)});