Hello, please, you could help me explaining how to make the response from php load first before being shown to the client, I want the load next to the client to be faster and not look like.
php 'include ("conexion_bd.php");
$result = mysqli_query($con,"SELECT * FROM tarot ORDER BY RAND() LIMIT 78");
while($row = mysqli_fetch_array($result)){
$cartaNombre = $row["Carta"];
echo "<input type='image' src='$cartaNombre' value='$cartaNombre' alt='no se encuentra' width='7%' class='cartas' name='carta' onclick='this.disabled = true; valor(value)'>";
}
mysqli_free_result($result);
mysqli_close($con);'
ajax
$.ajax({
type: "POST",
url: "baraja.php",
success: function(response)
{
$('.baraja').html(response).fadeIn();
}
});
muchas gracias
I hope you make me understand help me please