I am doing a page speed test and there is a specific domain that keeps causing lag time in page speed. I do not think there is any use for these external files so I would like to omit them during the page load when a user visits the site.
I found this url which is very close to what I am looking for but I do not see the need to create 2 lines of code. block specific external calls in WordPress?
Instead of blocking them all and then whitelisting the ones I want to allow, I would simply like to block the 1 external url which I believe I should only need 1 line of code with WP. Can someone help point me in the right direction?
This is what I have now. define('WP_HTTP_BLOCK_EXTERNAL', true);
Line 2, whitelisting define('WP_ACCESSIBLE_HOSTS', 'site1.com, site2.com');
Thanks for the help!