Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is ajax faster than reloading a page in form submission?

i have a general question : is loading data via Ajax totally faster than loading the whole page to grap data regardless of page size(external elements like images,css file,js file ...) ?

like image 374
hd. Avatar asked Nov 16 '25 13:11

hd.


2 Answers

As already mentioned, using AJAX methods, lets you avoid reloading most of the page, including the scripts, styles and images even though the AJAX request and response may not be any faster.

It is also important to note that a slick, subtley animated modern AJAX interface often feels much faster than it is to the user. Reloading the page, seems to have the effect of resetting something in the brain, whereas just updating the relevant parts of a page in a smooth way makes everything just 'flow' together.

Very subjective, I know. Any good designer probably has a better way of explaining it.

like image 164
Ian Gilham Avatar answered Nov 19 '25 10:11

Ian Gilham


@Spender is correct, but the main reason is that you do not re-grab the images, css, js and any other asset of the page. The request itself may or may not be faster but the final rendering is.

like image 42
Dustin Laine Avatar answered Nov 19 '25 10:11

Dustin Laine