jquery - QUERY versus PHP -


i trying understand medium use fetch data mysql database using php.

what better "speed" wise, jquery or php fetch data form mysql on page load?

with jquery alone can't fetch data mysql.
if question load page or data php after loading, can say, loading page better, because text standing on page when load , jquery have delay display data.

$.ajax({url: 'ajax.php', success: function(data){$('#name').text(data.name)}}); 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -