I think you need to place js at the bottom of the page (usually only inside the closing tag </body>) so that the content of the page is displayed during js loading.
jQuery, HTML .ready(), , , <body> . , , javascript HTML?
, , script. , .
, , .
javascript HTML . , / , script. , .
, .ready() , jQuery, , , , .
, , . , , js . js HTML, .