Let's say I want to execute a PHP script. Which way is better?
This:
$.ajax({ type: "GET", url: "php-script.php", dataType: "script" });
Or this:
$.get("php-script.php", function(data) { });