Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8826255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:05:33+00:00 2026-06-14T07:05:33+00:00

In my site I have: … <script type=text/javascript src=https://www.google.com/jsapi></script> … The script above is

  • 0

In my site I have:

...
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
...

The script above is the Google script to load up other resources dynamically.
(eg Google charts API)

This works 99.99% of the time.
However, I just got a client that for some reasons got his company restricting access to google.com.

As a consequence of this my website simply threw a JavaScript error.

Now I know how to handle that, and I can check if window.Google exists.
but my question is

“what’s the standard way to deal with this? “

In other words if you embed 3rd party JavaScript how best do you deal with their JS not available?

NOTE: VERY IMPORTANT

You can not host the chart code locally or on an intranet.

SEE FAQ from Google: https://developers.google.com/chart/interactive/faq#localdownload

Can I download and host the chart code locally, or on an intranet?

Sorry; our terms of service do not allow you to download and save or
host the Google.load or Google.visualization code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:05:34+00:00Added an answer on June 14, 2026 at 7:05 am

    The solution is that your client’s company review their content filtering policies. Google are quite clear in their previous answer concerning offline access:

    …your computer must have live access to http://www.google.com/jsapi in order to use charts.

    You are using a third-party solution according to their terms and conditions, which naturally imposes limits on how that solution may be used by your clients. You need to stand firm or find a more liberally-licensed solution. (At any rate, you are more likely to succeed at convincing your client’s IT department than petitioning Google to change their TOS.)


    For the more general case of third party JS APIs that may not load but for which you are allowed to keep a local copy on your server, see this question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have site which uses $(selector).load(path) function in more than 300 pages. Now my
I have site I am working on and the images take forever to load,
I have noticed that sites like http://hypem.com which is a full ajax site have
I am currently working on a site in a staging environment located at www.example.com/staging.
I'm currently working on a portfolio site wherein I would have to load a
I need to check if the images people upload to my site have the
I have a WordPress site which have 4 pages with one page is a
I Have site change.is, where right side menu & search bar in header is
So I have site list on certain pages that basically just have links to
On my web site I have XMLs with my page contents (automatically generated from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.