Avoid URL Redirects
What are URL Redirects?
How to Avoid URL Redirects
While redirects are a better alternative to a user than getting a 404 error, they do pose a slight performance problem by adding a delay between the user and the destination. And as we have mentioned, any slight roadblock or delay to the user is annoying. Obviously, one way to avoid redirects is to completely avoid them, but websites continually change and evolve, so URL redirects are sometimes required. However, if you can remove them, you should. For example, mobile devices now make up a majority of how people use and browse the Internet. However, in some cases, if a company is not using a responsive design layout for their website, they may have a redirect set up to switch users from the desktop version to the mobile version, which again, adds additional HTTP requests and page rendering time.
Lighthouse is an open-source tool that is used to run an audit against your web pages and provides scores and suggestions for improving page performance, accessibility, SEO, and more.
PageSpeed Insights is a tool created by Google that reports on the performance of a page on both mobile and desktop devices, and provides suggestions on how that page may be improved.