Google Loader jsapi - could be faster according to PageSpeed

115 views
Skip to first unread message

James Cridland

unread,
Mar 23, 2011, 10:59:36 AM3/23/11
to google-ajax...@googlegroups.com
Hello there,

Using Google Page Speed's tool, I notice that the jsapi call to the Google Loader could be rather faster.

Notably...

  • It is missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation
  • It has a short freshness lifetime of just one hour. PageSpeed recommends specifying an expiration at least one week in the future.

Any chance of a fiddle?

Kapil Bhagchandani

unread,
Jun 20, 2015, 9:03:39 AM6/20/15
to google-ajax...@googlegroups.com
It seems like it is reported almost 4 years ago but no workaround is done yet.I would like to up-vote for this to be achieved.

Jeremy Geerdes

unread,
Jun 26, 2015, 12:57:36 PM6/26/15
to google-ajax...@googlegroups.com
The JSAPI (aka, Google Loader) was quietly orphaned several months before the AJAX APIs were deprecated. It's now been well more than 3 years since the APIs were deprecated. All this to say that you should be looking for an alternative to the JSAPI, and I doubt you can expect any real response from Google on this issue. 

And even if you did get a response, the "bugs" you pointed out were intentional parts of the design of the loader. In order to maximize performance, the actual APIs that the JSAPI was intended to load were designed to be cached for very long periods of time. This had the side effect that, when an update to an API was pushed, it might be a very long time before a browser would actually discover it unless the URL changed with every update. These URL changes would then be pushed into the JSAPI. Since the JSAPI was designed as a single entrance for many APIs, and because each API was developed by a different team with its own deployment schedule, URLs were changing on a fairly regular basis. So the JSAPI was given a short cache life so that all users would be using the latest version of an API within an hour or so of a push.

jg



--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/f22fd43a-c386-4ae5-9b23-6045afb6439b%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 google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
Reply all
Reply to author
Forward
0 new messages