Each site is individual, you need to study this topic, and then analyze your site and already eliminate errors that slow down loading. To begin with, I would advise you to study nginx, I personally use it, set up high-quality compression, use Gzip + Brotli, configure the cache for correct operation, postpone all unnecessary js downloads, etc. These are the basic things that you should know and do and follow for the performance of your site.