<script type="text/javascript">
var loaded = false;
var load = '<div class="loader_container"><div class="loader loader-2"></div></div>'
$('#show').on('click', function(){
if(loaded){
$('#showme').toggle();
}else{
url: 'index2.php',
cache: false,
beforeSend: function() { $('#showme').html(load); },
success: function(res) { $('#showme').html(res); loaded = true }
}
});
</script>