title: Preloading the XML via jQuery or Javascript
body: <p>Hey guys, how can I preload an external XML file in Javascript/jQuery?</p>
  
  <p>This is my XML loader:</p>
  
  <pre><code>jQuery.ajax({
              type: "GET",
              url: dictionaryList,
              dataType: ($.browser.msie) ? "text/xml" : "xml",
              success: function(xml) {
                  var xml2 = load_xml(xml);
                  var i=0;
                  $(xml2).find('wordle').each(function(){
                      $(xml2).find('w').each(function(){
                          var tmpHold = $(this).text();
                          if (tmpHold.substring(0, 1) == letter) {
                              if ($(this).attr('p') == 1) {
                                  wordColor = 'color: #693030';
                              } else {
                                  wordColor = 'color: #5a5a5a';
                              }
                              $('#wordList').append('&lt;li class="w" style="'+wordColor+';"&gt;'+$(this).text()+'&lt;/li&gt;');
                          }
                      });
                  });
              }
          });
  </code></pre>