• Resolved TNELN

    (@tingaliin)


    Is it possible to add “Server Hints” like:

    <link rel=”prefetch” href=”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

    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://ww.wp.xz.cn/plugins/feed-them-social/

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter TNELN

    (@tingaliin)

    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

    (@tingaliin)

    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

    (@tingaliin)

    Is it otherwise possible a set up a cron job to cache feed photos?

    Thread Starter TNELN

    (@tingaliin)

    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

    (@slickremix)

    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

    (@tingaliin)

    In “feed-them-social/feeds/facebook/facebook-feed.php” there are many “http” instead of “https”. For instance “http://facebook.com&#8221; and “http://graph.facebook.com/&#8221;.

    Changing those to “https” did not make any difference.

    Thread Starter TNELN

    (@tingaliin)

    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

    Plugin Author slickremix

    (@slickremix)

    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

    (@tingaliin)

    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

    (@tingaliin)

    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

    (@tingaliin)

    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

    (@slickremix)

    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

    (@tingaliin)

    Before you find a way? 🙂

    Plugin Author slickremix

    (@slickremix)

    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

    (@tingaliin)

    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)

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