Instead of hiding in pageload, hide it on domready, for example:
$(function() { ........ });
Replace ...... with your two lines.
Home is already running when the tree house was built, and much earlier than pageLoad. Pageload is waiting for images and things to run. (given that you have pageLoad as follows: <html onload="pageLoad();"> ).
source share