Title: HTTP/2.0 and prefetch
Last modified: August 30, 2016

---

# HTTP/2.0 and prefetch

 *  Resolved [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/)
 * Is it possible to add “Server Hints” like:
 * <link rel=”prefetch” href=”[https://scontent.xx.fbcdn.net/XXX”&gt](https://scontent.xx.fbcdn.net/XXX”&gt);
 * to head for HTTP/2.0?
 * All resources load simultaneously except those from Facebook and Twitter when
   2-3 new connection a created, and there is a lag. If we can load these before
   it maybe can accelerate the load speed a little?
 * [Se image](https://cloud.githubusercontent.com/assets/13484205/8890544/3e6c3416-3305-11e5-9405-4ae73a14d3c7.png)
 * On my site “scontent.xx.fbcdn.net” from Facebook Event is load first, then “graph.
   facebook.com” is called and redirects to “scontent.xx.fbcdn.net” to fetch photos
   from Facebook Feeds. Maybe if we prefetch these resources from “head” then everything
   can fetch simultaneously?
 * Prefetch is supported by almost all browsers except Safari, but I think it may
   become a standard after the introduction of HTTP/2.0.
 * I don’t know if “dns-prefetch” can speed up it with HTTP/2.0, and if ti does 
   then it must load right after <head>.
 * [https://wordpress.org/plugins/feed-them-social/](https://wordpress.org/plugins/feed-them-social/)

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/http20-and-prefetch/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/http20-and-prefetch/page/2/?output_format=md)

 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365170)
 * Photos from Facebook Events/Feed and Twitter are simply blocking other resources.
 * I don’t know if prefetch can speed up it but maybe worth a try?
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365173)
 * Have tested to prefetch Profile Photo, it actually made loading slower.
 * I seems my problem is that my header slider background images are loaded last,
   otherwise no problem.
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365180)
 * Is it otherwise possible a set up a cron job to cache feed photos?
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365188)
 * Or is it possible to change “graph.facebook.com” to call a specific host “scontent.
   xx.fbcdn.net” based on visitors country ot language to speed up it a little.
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365199)
 * Sounds like you’ll have to come up with a custom solution for your setup. We 
   don’t have anything to truncate the loading anymore than we have with our caching
   system. And in order to get updates in the feed you can’t cache everything for
   very long either. It’s sorta, a catch 22. If loading is a problem, just create
   a scrolling feed and only load a few posts and use the loadmore button option
   available in our premium version.
 * Spencer
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365241)
 * In “feed-them-social/feeds/facebook/facebook-feed.php” there are many “http” 
   instead of “https”. For instance “[http://facebook.com&#8221](http://facebook.com&#8221);
   and “[http://graph.facebook.com/&#8221](http://graph.facebook.com/&#8221);.
 * Changing those to “https” did not make any difference.
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365243)
 * Firefox Dev Tools show the following for graph.facebook.com (SPDY 3.1), is it
   making multiple connection instead of one? Is “batch” being used or not? Otherwise
   I think the loading of “graph.facebook.com” and “scontent.xx.fbcdn.net” is slow
   from my country. From US and Central Europe it seems to be faster.
 * [See image](https://cloud.githubusercontent.com/assets/13484205/8894861/511eda94-33c5-11e5-85bc-decd41c4e845.png)
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365311)
 * No we are not batch loading, but we are caching the info.. if the cdn is slow
   to serve, we can’t really do much about it. Sounds like the loading is slow from
   your country as you say. We’ve not had any other recorded issues like you’re 
   experiencing.
 * Spencer
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365312)
 * Thank you for the explanation. I have no much experience from og/graph.
 * Yes, it looks like downloading photos is slow.
 * Profile photo is fast though, if it depends on size maybe it is not any issue
   with connection or SSL optimization.
 * It would be very cool if the server found response from graph could be rewritten
   to replace “scontent” with “scontent-xxnn-n”.
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365313)
 * Then again… Profile photos (fast, seems to be Ireland from here) are not fetched
   from the same CDN/server compared to the post photos (slow, U.S.).
 * When I visit Facebook the post photos comes from a CDN located in the UK.
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365314)
 * There are a couple plugins available to cache images and archive remote images,
   with fairy short codes, but they didn’t work for FTS (just for testing without
   any cache time settings). Maybe because graph.facebook.com is not the img src
   end scource. Or if it is because my FTS runs as a short ode inside another a 
   short code element?
 * Is it possible to create a function for caching also images, and keep the feed
   dynamic along with the post texts?
 * Also, regarding FTS caches, where are they stored?
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365315)
 * Correct… graph.facebook.com is not the img src end scource… it is only returning
   the url.
 * If you can come up with something to serve it up quicker I would be glad to know
   🙂
 * Spencer
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365318)
 * Before you find a way? 🙂
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365319)
 * Weeell really that would fall under premium type work since we are not getting
   others with this specific type of issue.
 * Spencer
 *  Thread Starter [TNELN](https://wordpress.org/support/users/tingaliin/)
 * (@tingaliin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/#post-6365331)
 * I wrote a function in PHP ( 5 lines) to rewrite headers Location and this gives
   me a single request instead of two requests and cuts load time with 1 second.
   I have heard that when a rewets is sent to “graph.facebook.com” then it is supposed
   to choose the nearest CDN (scontent.xx.fbcdn.net) based on requesting IP. But
   a such mechanism has nto been observed. If a such mechanism exists then It would
   be great to know how it exactly works and get som documentations from it, and
   if not then we must know a list of CDN i all locations/continents to manually
   redirect then Location response.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/http20-and-prefetch/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/http20-and-prefetch/page/2/?output_format=md)

The topic ‘HTTP/2.0 and prefetch’ is closed to new replies.

 * ![](https://ps.w.org/feed-them-social/assets/icon-256x256.jpg?rev=998039)
 * [Feed Them Social - Social Media Feeds, Video, and Photo Galleries](https://wordpress.org/plugins/feed-them-social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feed-them-social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feed-them-social/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-them-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-them-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-them-social/reviews/)

 * 24 replies
 * 2 participants
 * Last reply from: [TNELN](https://wordpress.org/support/users/tingaliin/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/http20-and-prefetch/page/2/#post-6365395)
 * Status: resolved