Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17402

Google Maps API sometimes tries to call initMap callback before it is defined.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.9
    • Fix Version/s: 4.6.10
    • Component/s: Core CiviCRM
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Observed on both Chrome and Firefox - the remote Maps API script is run as soon as it is downloaded, which can be before the inline script defining the initMap callback is run.

      Re-ordering the script tags does not help, however marking the remote script with the "defer" attribute works consistently.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: