What can I do to load page without breaking code? [closed]

-1

Currently, when I load the page from my site, everything appears broken, with no configuration and then renders everything, the problem is that this is not interactive to the user. I have already mined the js / css files, the speed has improved, but it still continues to break the page, can this be html problem?

    
asked by anonymous 30.11.2015 / 18:33

1 answer

0

Amiga does the following, leaves a global div and "display: none" so the html will load but hidden. In jquery, you get the load of the document and remove the display: none.

$(document).ready(function(){
$('body').css('display','');
})

Something like that, test and see if it solves your problem. If it works, please include a loading to make it cool.

This problem occurs because the html is loaded and rendered before all css and jquery, so we have to get around this. Lifecycle and rendering.

    
30.11.2015 / 18:55