title: How to preload ajax data before putting it in a div?
body: <p>So I have this script for fetching data with ajax:</p>
  
  <pre><code>$.ajax({ 
    url: 'ajax.php',
    data: { modelID:id },
    type: 'post',
    success: function(result){
      $(result).load(function(){
         $('.view_'+id).html(result)
         $('.view_'+id).find('.brandModelGallery').bxSlider({})
         $('.view_'+id).addClass('loaded')
      })
    }
  })
  </code></pre>
  
  <p>But I'd like to attach the <code>$('.view_'+id).html(result)</code> only after the data has been received, otherwise the page load is very ugly. What should I add to the success response to make that happen?</p>