Many WordPress site owners face performance challenges due to unmonitored third-party requests. These requests can significantly slow down your website, annoy your visitors, and negatively impact your search engine rankings.
By tracking third-party domain requests, you can pinpoint performance issues, enhance your website’s loading speed, and provide a more enjoyable user experience. After extensive testing of various monitoring techniques and tools, we have identified effective methods suitable for any WordPress site.
In this guide, we will demonstrate how to effectively track third-party domain requests in WordPress. You will discover straightforward methods to monitor external requests, identify troublesome plugins or themes, and optimize your website’s performance without any technical difficulties.
Understanding Third-Party Domain Requests in WordPress
Third-party domain requests occur when your WordPress site retrieves content from external sources rather than solely from your own server.
To illustrate, when a visitor accesses your site, their browser loads content directly from your hosting server (first-party content). However, many WordPress sites also incorporate elements from various websites and services across the internet (third-party content).
These external requests are very common in contemporary WordPress sites. Here are the most typical examples we encounter:
- Tools like Google Analytics, Facebook Pixel, and heatmap services that analyze visitor behavior.
- Social media features such as share buttons, embedded posts, or login systems from Facebook and Twitter.
- Advertising options including Google AdSense display ads, affiliate banners, or sponsored content widgets.
- Typography options like Google Fonts, Font Awesome, or custom fonts sourced from third-party services.
- Assets like images, scripts, or stylesheets hosted on external CDN servers to ensure faster content delivery.
- Interactive media such as YouTube videos, Google Maps, Spotify playlists, or other engaging content.
- External libraries, APIs, or services that are essential for the functionality of your WordPress plugins.
In WordPress, many third-party requests originate from plugins and themes. For example, a contact form plugin may connect to reCAPTCHA for spam protection, while a security plugin might check for threats using an external database.
The Importance of Tracking Third-Party Requests on Your WordPress Site
Although third-party requests can enhance functionality, they also pose potential issues that many WordPress site owners may overlook:
- Every external request contributes to your page loading time. Even with top-notch WordPress hosting and optimized images, an overload of third-party requests can hinder your site’s performance.
- When a third-party service experiences downtime or slow response times, it can hinder the loading of your entire webpage. This creates an external single point of failure that is beyond your control.
- Third-party requests frequently involve data collection, which may impact your website’s adherence to privacy laws such as GDPR.
- Many WordPress site owners are unaware of the number of external requests generated by their plugins and themes until they begin tracking them.
We have encountered WordPress sites that were making over 50 third-party requests per page load without the owner’s knowledge. By pinpointing and optimizing these requests, you can significantly enhance your site’s speed, reliability, and overall user experience.
In the upcoming sections, we will guide you on how to identify all third-party requests on your WordPress site and optimize them for improved performance. Let’s begin by uncovering the external requests your site is currently generating.
Identifying Third-Party Domain Requests in WordPress
The first step is to identify all the third-party domain requests your site is making by utilizing Pingdom.
Pingdom is a widely used performance monitoring tool that enables you to track your WordPress server’s uptime. It can also display all third-party domain requests made by your site.
To begin, visit the Pingdom website and enter your domain name in the ‘URL’ field. After entering the information, click on ‘Start Test.’
In just a few moments, Pingdom will provide a detailed analysis of your website’s performance.
To view all third-party domain requests, scroll down to the ‘File Requests’ section. Here, you will find the content type, URL, and size of each request.
To identify third-party requests, look for any entries that do not start with your website’s domain name.
For more information about a specific request, hover your mouse over its bar in the waterfall chart.
This section displays all the processes WordPress follows to retrieve content from the third-party domain, including DNS lookups, SSL handshakes, and data downloads.
Pingdom also indicates the duration of each step, allowing you to pinpoint the domain requests that significantly affect your website’s performance.
If you encounter an unfamiliar third-party service, simply paste its URL into a search engine like Google. This often leads to documentation, pages, and forums where you can find more information about the domain.
How to Enhance Third-Party Domain Requests
After identifying the third-party domain requests that negatively impact your website’s performance, you can implement several strategies to optimize these requests and enhance your WordPress site’s speed.
The most effective method for you may depend on your specific WordPress setup, the types of requests being made, and various other factors.
To get started, feel free to use the quick links below to navigate directly to the method you wish to explore further:
- Method 1: Eliminate Third-Party Domain Requests
- Method 2: Uninstall Unnecessary WordPress Plugins
- Method 3: Preconnect to Key Third-Party Domains
- Method 4: Enable DNS Prefetching
- Method 5: Host Resources Locally
- Method 6: Implement Lazy Loading
- Bonus Tip: Enhance Your Overall Site Health Check Score
Are you ready? Let’s dive in.
Method 1: Eliminate Third-Party Domain Requests
This approach may not be suitable for every WordPress blog, but removing certain third-party requests can significantly improve your page loading times.
You might have unintentionally added a domain request, or your business needs may have changed, making a specific third-party request less effective.
For instance, you might have initially integrated Google AdSense, but now find that your online store generates more revenue through WooCommerce product sales. By eliminating Google AdSense, you could enhance your store’s performance, leading to increased sales and significantly higher profits compared to displaying online advertisements.
There isn’t a one-size-fits-all solution for every website. However, consider experimenting with the removal of various services and content from your site, and monitor how these changes affect key metrics like your conversion rates.
Here are some helpful tips:
💡 If you choose to remove features and plugins that initiate third-party domain requests, it’s wise to back up your WordPress website. This ensures you can quickly restore your site if you encounter any issues or make an error.
🛠️ You may also want to enable maintenance mode on your site during this process, just in case any changes disrupt its functionality.
The process for removing third-party domain requests can differ based on the specific request. However, you can usually find comprehensive step-by-step instructions in the documentation for the relevant service, plugin, or software, or by searching online.
For additional information on this subject, please refer to our guide on how to effectively request WordPress support and receive assistance.
Step 2: Eliminate Unnecessary WordPress Plugins
Plugins significantly contribute to WordPress’s popularity. With the right plugins, you can enhance missing features, expand built-in capabilities, and transform your WordPress blog into any type of website.
However, certain WordPress plugins generate numerous third-party requests, which can slow down your website. You might not even realize these requests are occurring.
We suggest navigating to Plugins » Installed Plugins in your WordPress dashboard to uninstall any plugins you no longer use.
You might also consider consolidating multiple smaller plugins into a single, more efficient WordPress plugin.
For instance, while there are many SEO plugins available, AIOSEO is recognized as a complete solution.
AIOSEO provides an all-in-one SEO toolkit that manages all your essential SEO needs in one location. We utilize it on the CanadaCreate website and highly recommend it. Check out our comprehensive AIOSEO review for more insights into our experience.
Step 3: Preconnect to Key Third-Party Domains
Another strategy is to establish a connection to the external domain right at the start of the page loading process. When a browser pre-connects to an external domain initially, it can often retrieve third-party content much more quickly.
Be mindful that reconnecting to external websites can delay the loading of other elements on your page. Therefore, it’s essential to limit this practice to only crucial external resources. Connecting to less significant sites may hinder your page’s performance, causing longer wait times for visitors.
To implement the pre-connect method, you will need a comprehensive list of all your third-party domain requests. If you haven’t compiled this list yet, you can obtain it using Pingdom by following the steps outlined earlier.
Next, you’ll need to insert custom code into your WordPress site. While some guides suggest editing your theme files directly, this approach can lead to various common WordPress issues. Additionally, direct edits may prevent you from updating your theme without losing your customizations.
This is why we recommend using WPCode.
WPCode is the premier code snippets plugin that enables you to safely add custom CSS, PHP, HTML, and more to your site. You can easily enable or disable your code snippets with just a click.
We utilize it to enhance the functionality of our own websites, and it has proven to be an excellent tool. You can find more information in our detailed WPCode review.
To begin, install and activate the free WPCode plugin. For detailed instructions, refer to our comprehensive guide on installing a WordPress plugin.
After activating the plugin, navigate to Code Snippets » Add Snippet.
You will find a collection of pre-made WPCode snippets available for your website.
These snippets include options to completely disable comments, allow file types that WordPress typically does not support, disable attachment pages, and more.
Hover over the ‘Add Your Custom Code (New Snippet)’ option, then click the ‘Use snippet’ button when it appears.
On the following screen, enter a title for your code snippet. This title is for your reference, so feel free to choose any name you like.
In the ‘Code Type’ dropdown menu, select ‘JavaScript Snippet.’
Once that’s complete, you can proceed to add each domain that WordPress should pre-connect to.
For instance, in the code snippet below, we are pre-connecting to Google Fonts:
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />In the code editor, add all the external URLs that you wish to incorporate.
Next, scroll to the ‘Insertion’ settings and ensure ‘Auto Insert’ is selected.
Then, open the ‘Location’ dropdown and select ‘Site Wide Header.’
When you’re ready to activate the code snippet, scroll to the top of the page and toggle the ‘Inactive’ switch to ‘Active.’
Click on the ‘Save Snippet’ button to save your changes.
Method 4: Implement DNS Prefetching
DNS prefetching enables a background DNS lookup before the visitor requires the linked content or resource.
This technique is especially beneficial for third-party resources frequently used on your website, such as Google Analytics, Google Fonts, or your WordPress Content Delivery Network (CDN).
To implement DNS prefetching, create a new JavaScript snippet using WPCode, following the same steps outlined earlier.
Once completed, add each domain name you wish to prefetch using the following format:
<link rel="dns-prefetch" href="https://fonts.googleapis.com">After entering the required information, integrate the code into your site-wide header by following the instructions in Method 3. Once completed, you can publish the code snippet.
Method 5: Host Resources Locally
When implemented correctly, preconnecting and prefetching enable you to make requests to third-party domains without compromising the user experience. However, whenever possible, aim to host resources and content on your own server.
Utilizing a local server to store your website’s content enhances loading speed and provides greater control for further optimization. For instance, you could implement a caching plugin or a Content Delivery Network (CDN).
There are numerous WordPress plugins and services available that can assist you in hosting content locally.
For instance, if you wish to use custom typography,you can host local fonts in WordPress instead of loading them from an external source,like Google Fonts.
In a similar manner, you can effortlessly incorporate unique icon fonts into your WordPress theme using a plugin such as SeedProd.
Many of our partner brands rely on SeedProd to create their entire websites, including customizing fonts to reflect their distinct brand identities.
For additional details about the plugin, please check our SeedProd review.
If you’re utilizing Google Ads, Google Analytics, Campaign Manager, or other popular free Google services, you can host the gtag.js script on your own server by using MonsterInsights along with the Performance Addon.
By substituting external domain requests with local resources, you can enhance your website’s performance while maintaining its features and content.
Method 6: Implement Lazy Loading
Lazy loading allows your website to load only the content that is currently visible on the user’s screen, with additional content loading as the user scrolls down. This technique can create the impression of faster page loading times.
WordPress automatically enables lazy loading for images, and it can also be beneficial to lazy load content hosted externally.
For instance, if you want to embed YouTube videos in your WordPress blog posts, you can select a plugin that includes lazy loading functionality.
Other plugins, like Smash Balloon YouTube Feed, offer built-in caching and delayed loading for the video player, which can enhance the perceived loading speed of your pages, even when displaying content from third-party sites.
Bonus Tip: Enhance Your Overall Site Health Check Score
Now that you have mastered tracking and optimizing third-party requests, it’s time to elevate your site’s performance even further.
A strong site health score is essential for ensuring the performance and security of your WordPress site. The integrated site health feature conducts various tests to identify common problems, such as outdated software or security risks.
For example, it verifies if your site is utilizing the latest PHP version. This is vital because using an outdated PHP version can hinder your site’s speed and lead to compatibility issues with popular plugins.
By enhancing your site health score, you will guarantee that your website operates efficiently, improving speed, security, and overall performance.
For more information, refer to our article on tips for boosting your WordPress site health check score.
We hope this article has helped you understand how to track third-party domain requests in WordPress. Next, you might also want to explore our guide on using a plugin organizer to enhance your site’s speed or our expert advice on troubleshooting if your WordPress site frequently goes offline.
If you enjoyed this article, please subscribe to our YouTube Channel for WordPress video tutorials. You can also connect with us on Twitter and Facebook.


