title: JQuery dialog momentairly displayed on page load
body: <p>I created a page that has a JQuery based dialog using the standard JQuery UI function. I do this with out of the box functionality of JQuery... nothing special at all. Here is my HTML for the dialog:</p>
  
  <pre><code>&lt;div id = "myDialog"&gt;
      &lt;!-- ... more html in here for the dialog --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Then the JQuery called in javascript that transforms the &lt;div&gt; to a dialog:</p>
  
  <pre><code>    // pruned .js as an example of kicking up a JQuery dialog
      $('#myDialog').dialog({
          autoOpen: false,
          title: 'Title here',
          modal: true
          }
      });
  </code></pre>
  
  <p>Again, plain-vanilla JQuery. So you start this wizard by clicking on a link on the parent page, and it then spawns a JQuery dialog which has a significant chunk of HTML that includes images, etc.</p>
  
  <p>As I continued developing this page, I started to notice that when I loaded the page in the browser that the &lt;div&gt; tags I was putting in that JQuery transforms into dialogs would very briefly be displayed. Then the page would act as expected. In other words, <b>the dialog would not be hidden, it would be displayed briefly in-line in the page.</b> Quite ugly and unprofessional looking! <b>But after a split second, the page would render correctly</b> and look just as I expected/wanted.</p>
  
  <p>Over time, as the page size grew, the time the page would remain incorrectly rendered grew. My guess is that the rendering engine of the browser is rendering the page as it is loading, then at the end it is kicking off the JQuery that will transform the &lt;div&gt; into a dialog. This JQuery function will then transform the simple &lt;div&gt; to a JQuery dialog and hide it (since I have the autoOpen property set to false). Some browsers &lt;cough&gt;IE&lt;/cough&gt; display it longer than others. My large-ish dialog now causes the page to incorrectly render for about 1 second... YUCK!</p>