Preventing localhosted web application from looking up online resources

I am having speed trouble working with my locally hosted wordpress application. This is because it always looks up online resources like fonts.google.com..., api.google.com..., etc, it only when the resources are loaded or fail to.

What would be the best solution to cutting this loading of remote resources?

Would overriding php load time do the trick?

Solutions

Presumably all these resources are being loaded from a CDN, and that would be the way to go. You can improve the performance of your site even further by pre-resolving the DNS of the CDNs.

In your <head> tag, you would have something like this:

<link rel="dns-prefetch" href="//fonts.google.com">
<link rel="dns-prefetch" href="//api.google.com">

Also consider hosting all of your assets in your own CDN. This way you would only have to deal with a single DNS resolution.

I common pattern is something like http://www.example.com for the actual site and http://assets.example.com for JS, CSS, and images, fonts, etc.

Here are a few CDN hosting options: http://en.wikipedia.org/wiki/Content_delivery_network#Notable_content_delivery_service_providers

Lastly, if you insist in that you don't want any remote resources, just download what you need and host them locally (on the same server running your site).

Similar questions

It possible to implement an adhoc php web application with wordpress?
I need to implement a web app in php and I wonder if it would be a good solution to use wordpress or just do it with external php code my web app: Has some panels with forms for the users to fill, process these forms data, connect by http API to different servers, get the data in Jason, process it and show it I am new in wordpress but have some php...
use WordPress Rest API to build a web application
This is fully updated question, Angular provides two ways to build your wordpress site/application Can anybody tell pros and cons of each of the above listed steps Im not good at angular, so any comprehensive information would be appreciated.
How to integrate together a website currently hosted Wordpress.com and a custom web application currently hosted on Azure?
Background: I am a C# developer and have developed a web site/application that can be hosted on Azure (or any Linux server). Another person has created a Wordpress blog and he is managing it through standard hosting service provided by Wordpress.com Problem: We want to fuse our sites together so they are accessible through a single domain name. Ide...
Can I integrate a Zend-Framework powered web application into a wordpress site?
I have a project in which I want to be able to call wp_list_pages() on a page that also uses the Zend Framework to power some complex interfaces manages custom data outside of wordpress. This page should also redirect the user to the wordpress login screen if they're not already logged in with the appropriate level of authorization. How would this ...
Using apt-get to install an instance of a web application
Is it possible to have many instances of MediaWiki or Wordpress on a web server, installed and automatically upgraded by apt-get? If so, would Ubuntu LTS upgrade with security-only patches? Thanks!
Is PHP the only choice re: massive and rapid uptake of a re-deployable, extensible web application?
My own answer to this question is YES, but I'd like to hear from others. Put another way the question could be: Would the success of 1-click-install WordPress (not WordPress.com, which is SaaS) be possible if it weren't written in PHP, all other things being equal? The critical associated requirements I believe support PHP are: Items #1 and #2 are ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.