What can I do to load page without breaking code?

Asked

Viewed 62 times

-1

Currently, when I load the page of my site, everything appears broken, no configuration and then renders everything, the problem is that this is little interactive for the user. I’ve minified the js/css files, the speed has improved, but it still keeps breaking the page, this may be problem in html?

  • 1

    What is the page? Which error does? could not pass me the FTP address with password for me to take a look?

1 answer

0


Buddy does the following, leaves a global div and the "display:None" so the html will load but hidden. Ai in jquery, you take the Document load and remove the display:None.

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

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

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

  • gives a look what happens.. http://novo.intercambioglobal.com.br/

  • 1

    Dude, first your Pover and datepicker are giving error, solve it. Second, put the ga script at the end of everything on the page. Third, you have two header your code, all right? see the templates. , but none of this q to speaking creates this problem, just hints. Here too, it loads everything and dps organizes and applies the css and loads the scripts. Cara does so, puts a:None display on the body, in the same hand, no JS, and in Document.ready you remove this:None display. ?

  • http://jsfiddle.net/rboschini/uoLp26f4/ I made an example for you to see

Browser other questions tagged

You are not signed in. Login or sign up in order to post.