Ticket #72 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

Googleapi js call causes pages to hang before render

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

Description

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

Changed 3 months ago by ofer

  • status changed from new to accepted

Hi,

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

Changed 3 months 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.

Changed 2 months ago by ofer

  • status changed from accepted to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.