Hi,

I discussed this with my colleagues. Apparently over the last days a change 
to the /jsapi loader was rolled out that is slightly incompatible with the 
way you're using it. People have been discussing it on the Google 
Visualization API group (e.g. 
https://groups.google.com/d/msg/google-visualization-api/hGys_iI99bE/KCY66-zyDgAJ)
 
- I haven't looked through all the threads there, but maybe you could find 
some background information about the change in that group.

There's also something here about moving to the new library loader: 
https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code

I'm sorry for that - we really try to avoid breaking changes, but in this 
case, it seems like we had the choice between completely shutting the old 
/jsapi API down, or installing the redirect to a similar, but not identical 
implementation that usually works fine, but apparently in your case breaks, 
due to the way you use the callback feature. It is planned that the 
redirection eventually becomes a permanent HTTP 301.

I checked the code on your site, but unfortunately I'm not a frontend web 
dev myself and can't really tell you exactly how to fix it.

My colleague told me that the issue seems to be with the callback being set 
to __rqs[5].wrapCB. With the new loader, the callback would have to be a 
global function, not an expression. In addition, the callback is called as 
soon as the DOM is ready, independent of what is being loaded. That's the 
behavior of the jsapi loader, I believe, though it is not clear and timing 
could make a difference in actual behavior. That is, if the jsapi loader 
was able to return things faster, then the DOM being ready might not be 
enough. In case that turns out to be an issue, the callback should be moved 
to the google.load call.

The callback in the google.load settings can be an actual function that is 
available in the lexical scope of the google.load call, rather than the 
name of a global function.

I hope this helps. If you run into issues, please feel free to follow up.

Kind regards,
Philipp


On Monday, June 15, 2020 at 7:05:57 PM UTC+2, Philipp Wollermann wrote:
>
> Hi,
>
> First, I'm sorry that something broke your site. I'll figure out what 
> happened here and will get back to you asap.
>
> Thank you for the excellent issue report - the details and timing 
> information helps a lot narrowing down what might have caused this.
>
> Kind regards,
> Philipp
>
> On Monday, June 15, 2020 at 5:57:53 PM UTC+2, JavaJive wrote:
>>
>> I do not know if this is the place to report this, but it's the only 
>> reasonably likely one I could find, so here goes.  If this is not 
>> appropriate, can someone please point me to a working link to report a 
>> problem to Google.
>>
>> Currently the Google AJAX API Loader is 302 (temporarily) redirecting to 
>> a useless alternative.
>>
>> Since around Friday 12th or Sat 13th June 2020, the Google AJAX loader 
>> URL ...
>>
>>     http(s)://www.google.com/jsapi?<parameters>
>>
>> ... example of working parameters ...
>>
>>     http(s)://www.google.com/jsapi?callback=onGoogleAJAXLoad&key=<my 
>> Google dev key>
>>
>> ... is 302 (temporarily) redirecting to a Google (server, not client, 
>> based) Static Charts loader ...
>>
>>     http(s)://www.gstatic.com/charts/loader.js?<presumably entirely 
>> different parameters>
>>
>> As the eventual destination URL can't load the Google Search API, this 
>> has broken the two most popular pages on my site:
>>     
>> www.macfh.co.uk/JavaJive/AudioVisualTV/SatelliteTV/SatelliteCalculator.shtml
>>     
>> www.macfh.co.uk/JavaJive/AudioVisualTV/TerrestrialTV/TerrestrialCalculator.shtml
>>
>> As the weekend, when work might be expected most reasonably to occur, has 
>> now passed but the redirection remains, how long is this temporary 
>> redirection scheduled to remain breaking my site?
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/14132831-f04c-4b02-9d27-5b6003ec6816o%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-ajax-search-api/14132831-f04c-4b02-9d27-5b6003ec6816o%40googlegroups.com.

Reply via email to