Through the use of preconnect and dns-prefetch you can speed up PrestaShop's load time between 100 and 500ms by establishing early connections of important third-party resources for web page rendering. It sounds small, but it makes a big difference on your customers' perception and especially for Google's important Web Vitals metrics. In some cases especially with resources served by non-European servers or very slow servers, the improvement can be even more pronounced. However, the preconnect feature should be used carefully and only where really needed, as it requires valuable CPU time and this would negatively impact if the connection is not used within 10 seconds, as the browser would close it.
Third-party queues that significantly impact the Total Blocking Time metric:
- Google Fonts and Google Analytics
- Facebook Pixels and TikTok
- Verified Review Systems such as: Trustpilot, Eshoppingadvisor, Feedaty, Verified Reviews, etc..
It is therefore important to use in moderation and only where essential and to consider whether to pre-connect such resources to reduce the resulting rendering blockage, our module for PrestaShop allows you to do this without editing the template so it is easier and more practical to perform the appropriate tests through gtmetrix or similar tools.
References and insights: