1

I just want to stop rendering to the html to the DOM until my Css and Js loaded from an external source.

    <html is showing here >
            <link type="text/css" rel="stylesheet" href="http://preview.somex.com/sites/all/themes/bootstrap_mywinners/css/style.css">
           <script type="text/javascript" language="javascript" src="http://preview.somex.com/sites/all/themes/bootstrap_mywinners/js/mywinners-global-scripts.js">
    <html is end here >

Why I'm doing this is the static html is looking ugly until the css and js loaded and then after sometime?(after loading css and js from network) it looks cool.

So I just want to stop showing html until the script and css load.

Any clues/help regarding this ?

Stephen Hines
  • 2,612
  • 1
  • 13
  • 12
Suresh Atta
  • 120,458
  • 37
  • 198
  • 307

1 Answers1

0

If your includes are nested in the BODY tag not a lot you can do with just pure HTML. If you can move them up into the HEAD section section this should fix itself. A great breakdown of how the page loads and what fires when is on an answer to another StackOverflow question see this link :

Which is the load, rendering and execution order of elements in a HTML page?

Hope you find this helpful.

Community
  • 1
  • 1
Mike Chilson
  • 91
  • 1
  • 2