Faster to display results from php or via jquery using ajax and json? -
i have list of results im displaying database using php. query database based on search options user uses , return results in table layout. im thinking using jquery , ajax call php script instead can use loading icon know working instead of page hanging waiting results.
my question is, faster call php script jquery using ajax , have php script results, build view return view , have jquery display view output of php script? or faster request php page jquery/ajax, have php script return json object of results , have jquery loop through , build view inside jquery function instead?
this question has been addressed: creating html: php server-side vs. jquery client-side
Comments
Post a Comment