Opened 8 years ago

Closed 8 years ago

#72 closed defect (fixed)

Googleapi js call causes pages to hang before render

Reported by: datapharmer Owned by: ofer
Priority: critical Milestone: 0.5 - Beta wordpress plugin
Component: WordPress Plugin Version: 0.3.8
Keywords: google, api, javascript, jquery, automatic Cc:


Tonight I experienced trouble with translated pages loading. All html was loaded but nothing was rendered. Upon investigation I realized that the googleapis domain was not responding to requests, and as a result the page would not render since there was no ajax response.

Disabling "Allow automatic translation of pages (currently using Google Translate)" corrected this problem. There needs to be either a response timeout or a change in ordering to prevent a 3rd party failure from causing a complete failure of the page load. The current event results in a blank page with just <title> loading.

Change History (3)

comment:1 Changed 8 years ago by ofer

  • Status changed from new to accepted


I know we should eventually move to async loading of this, which will solve this issue, however for now - can you move transposh to the footer? should prevent the no-rendering

comment:2 Changed 8 years ago by datapharmer

Hi, Push to footer was already selected. I don't know what else may be in my template that would cause it - it may be due to a caching plugin which might be combining some javascript and putting the combined files in the header. I can look into it some more, but am okay with just disabling automatic translation and republishing manually for now, but wanted to make sure this was a known issue.

comment:3 Changed 8 years ago by ofer

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed by [349] (hopefully) as scripts are now loaded async and on demand.

Note: See TracTickets for help on using tickets.