I’m making a web app, and I thought about using AJAX to make the website faster. Will using AJAX to update the container-div in practice lead to a faster website? Because of cache, loading will have no impact, but will it go faster because the JavaScript doesn’t have to be re-evaluated on each page load?
Share
If you use AJAX for everything, there is no page load, so yes, JS only is evaluated once.
Also less data is transferred overall so things should be quicker.
However, make sure each page still has an URL that can be visited to get that content without JS so that Google et al. will still be able to index the site (if that’s important!)