Have you ever tried to fix the load time of your web pages and applications? Is your web store or other web application getting slower as you keep adding more functions or because of data growth?
The time it takes for your web applications to respond when users visit them is much more important than ever!
Personally, I can confirm this as I see tangible benefits from reduced server response, network connectivity and load times of each page of this site. Without giving specific details, some of the benefits include: longer time spent on the site by users, increased engagement and more conversions.
We are basically talking about the performance that the end users of your web applications receive. But where do you start? This will vary from case to case. A good start is to start testing. There are many online tools that allow you to scan your page and see where you are. You can see the services web.dev, gtmetrix, pingdom, webpagetest etc.
The results may look something like this:
In this case, you have many more things to deal with before seriously considering TTFB. However, if the UI test result is closer to the screenshot below, most of the time you can continue to improve page load times by reducing the TTFB.
This can be achieved by optimizing and improving network and backend connection times.
In short, some of the factors that can cause slow TTFB are: DNS analysis, database, scripts running on the server, server hardware, poor configuration on the server, lack of caching, network webhost and upsteam performance.
You may need professional help to successfully troubleshoot and reduce your TTFB. For the purposes of this article, we will look at the TTFB analysis.
What is TTFB?
Ο χρόνος που χρειάζεται περιμένοντας την αρχική “απόκριση διακομιστή” είναι γνωστός και σαν Time To First Byte (TTFB). Ο χρόνος που καταγράφεται είναι η καθυστέρηση μιας μετ ‘restitutionς σύνδεση client με τον server, καθώς και ο χρόνος που χρειάζεται ο διακομιστής να δώσει μια απάντηση. (Πηγή: developers.google.com)
Ένα υψηλό TTFB είναι συνήθως ένδειξη ενός ή και two ζητημάτων:
1) Poor network conditions between client and server or
2) Slow response application or server.
A high TTFB often causes your page loads to slow down or, at the very least, to be delayed between page loads. You should check if your TTFB is a performance issue or not. Try to keep the TTFB below 200 milliseconds, or at least that is considered standard by Google. I think if you stay below 500 milliseconds the web page will be fast enough. The requests for the second consecutive test should be even lower.
TTFB control using CURL
The following is a quick example with CURL, showing how you can control TTFB from a Linux or Mac terminal. Use the following command and replace "https://iguru.gr/" with your domain:
curl -o / dev / null -w “Connect:% {time_connect} TTFB:% {time_starttransfer} Total time:% {time_total} \ n” https://iguru.gr/
Additional methods control of TTFB (via browser)
In addition to CURL, you can test TTFB using the following tools.
- Google Chrome browser Inspect tool
- gtmetrix.com
- webpagetest.org
- Performance.sucuri.net
- tools.keycdn.com/performance