To optimize the loading speed of your webpage, consider focusing on LCP, FCP, and TTFB – three essential web vitals. Additionally, INP (Interaction to Next Paint) is a newer metric that has been gaining importance for measuring user experience.
I have carefully maintained a list of scripts designed to monitor these web vitals at
https://github.com/darshansharma/site-performance-script