• Hello!

    I have a common problem with all plugins getting data from Twitter/Facebook. When Twitter/Facebook are not responding, my webpage is blocked from being loaded. The server is waiting for Twitter/Facebook API interface to responde and as they are overloaded or have big timeouts, my page is not loading.

    Do you know a solution to abort loading when their servers are slow?
    Thanks!

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

    I don’t know if you are a plugin programer or just a user. If you are programing it try to insert all the received data into database and on pageload just load this data but at the same time send an ajax request that will load the data from different apis into your database. With this method your loads should not be delayed by the response times of the Twitter or Facebook sites.

    If you are just a user it would be best to contact the plugin author and ask him.

    Hopefully I coul’d help a little 🙂

    Thread Starter conualfy

    (@conualfy)

    Just let me see if I got it right:
    One (myself or others) should modify the plugins to load the number of tweets/likes/etc. from the database, and after the page is loaded to have a script (Ajax) to update the information from the live Twitter/Facebook API?

    It sounds good and functional.

    Still, I guess it’s quite complicated to do this for all the plugins / systems while the plugins’ creators did not plan their plugins to work like that.

    I was thinking about some easier solution, like having a general script that blocks loading scripts from other servers that take let’s say more than 3-5 seconds to load.

    Well i admit it is not so simple but it is a bullet proof solution. I you would just use that script it will still prolong the response time of your site. I personally hate it if i wait my site just to load my latest twitts. It is not good to use such techniques. You could also just make something like a check if the data was loaded recently and just loadet it once a day. This would probably also resolve your timeout issue becose twitter alows only a certain number of request per hour.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twitter and Facebook timeouts blocking page from loading’ is closed to new replies.