Closed (won't fix)
Project:
Google Programmable Search Engine
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 14:17 UTC
Updated:
20 Nov 2015 at 14:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
abhaga commentedI had a similar problem. In my case the reason was that I had moved all the scripts to the bottom of the page as suggested for optimal performance. However, this meant that some of the variables required by the google_cse which are stored in Drupal.settings were not initialized in time. Hence the error.
When I move the scripts back up in the head section, everything is fine once again. I decided to modify the module a little to allow me to move back the scripts to the bottom. Let me know if you are interested in that and I will provide a patch.
Abhaya
Comment #2
Skirr commentedI'm sure interested in this patch, because have same problem with scripts at bottom. Would be very thankful.
Comment #3
abhaga commentedPatch is attached. Basically the patch removes the dependency on the Drupal.settings array. It also loads the show_afs_search.js in an asynchronous fashion.
Comment #4
rimu commentedThanks adhaga!
It would be great if this patch was included in the next version of this module
Comment #5
dschneider commenteddefinitively +1
Comment #6
dschneider commentedComment #7
malcomio commentedTidying up the issue queue, and marking issues as won't fix where the version is no longer supported.