Title: wp-json Causing Long &quot;Wait&quot; time for page loading?
Last modified: August 31, 2016

---

# wp-json Causing Long "Wait" time for page loading?

 *  [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/wp-json-causing-long-wait-time-for-page-loading/)
 * I am sorry if this is the wrong forum for this but I have no knowledge of what
   this is so I’m not sure where to go. I am trying to improve my page speed results.
   Using tools.pingdom.com I identified that the first thing which attempts to load
   has a very long “wait” time, often 2 seconds or more.
 * Google Pagespeed insights seems to register it as “server response time” but 
   my hosting provider has told me it is not the server because the same speed test
   to a page outside the wordpress install (ex. [http://www.mydomain.com/readme.html](http://www.mydomain.com/readme.html))
   does not have this issue.
 * When I look at the pingdom results, the first entry which has this long delay
   lists the link as
    <[http://www.mydomain.com/wp-json/&gt](http://www.mydomain.com/wp-json/&gt);;
   rel=”[https://api.w.org/&#8221](https://api.w.org/&#8221);
 * Can anyone provide me with any insight as to what this is and how I might troubleshoot
   the fact it is contributing such a delay to the websites loading speed?
 * Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Eric Gunawan](https://wordpress.org/support/users/erricgunawan/)
 * (@erricgunawan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-json-causing-long-wait-time-for-page-loading/#post-6997857)
 * Hi acann,
 * If you want to remove that line, you can try to put this script on your Child
   Theme’s `functions.php`:
 *     ```
       /* Remove X-Pingback in the HTTP header */
       add_filter('wp_headers', function($headers) {
           unset($headers['X-Pingback']);
           return $headers;
       });
   
       /* Remove link to Rest API in the HTTP header */
       remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
       ```
   
 * This is not my original answer, but i found it from here:
    [https://wordpress.org/support/topic/wp-44-remove-json-api-and-x-pingback-from-http-headers?replies=16#post-8014479](https://wordpress.org/support/topic/wp-44-remove-json-api-and-x-pingback-from-http-headers?replies=16#post-8014479)
 * You might want to read the full thread too, in case you find something helpful
   for you.
 * Here’s another link that might help you too:
    [http://wordpress.stackexchange.com/questions/211467/remove-json-api-links-in-header-html](http://wordpress.stackexchange.com/questions/211467/remove-json-api-links-in-header-html)
 *  Thread Starter [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-json-causing-long-wait-time-for-page-loading/#post-6997858)
 * Thanks! What will removing that do? Does it make sense that this slows down the
   response of my site or is it just a coincidence it shows that link on the first
   byte response?
 *  [Eric Gunawan](https://wordpress.org/support/users/erricgunawan/)
 * (@erricgunawan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-json-causing-long-wait-time-for-page-loading/#post-6997859)
 * To be honest, I myself not really sure if that line is causing your site slowing
   down.
 * But you can try to remove it first to check whether it’s really the cause or 
   not.
    If after removing the line, you still have the issue, then probably the
   root of your problem is not really those WP-API header line.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-json Causing Long "Wait" time for page loading?’ is closed to new 
replies.

## Tags

 * [delay](https://wordpress.org/support/topic-tag/delay/)
 * [load](https://wordpress.org/support/topic-tag/load/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [speed](https://wordpress.org/support/topic-tag/speed/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Eric Gunawan](https://wordpress.org/support/users/erricgunawan/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wp-json-causing-long-wait-time-for-page-loading/#post-6997859)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
