Here is the jQuery snippet to hide a parent div until everything is loaded and the option to show a loader which fades out when ready:-

Note: Within our code we substitute $ for jQuery but you can also use jQuery(window).load(function($){ for no-conflict mode.