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

  • Home
  • SEARCH
  • 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 9194827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:30:15+00:00 2026-06-17T21:30:15+00:00

I’m not sure why, though getting a similar issue. Trying to load in a

  • 0

I’m not sure why, though getting a similar issue.

Trying to load in a font from fonts.com with webfontloader so I can call functions after they’re loaded.

<script src="https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
<script>
   WebFont.load({
      monotype: {
        projectId: 'xxxxxxxxxxxxxxxxxxxx'
      },
      active: function() {
         mainNav();
      }
   });

But when ever I include it WITH the jsapi

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

I get the following issue in the console:
Uncaught TypeError: Cannot call method ‘hasAttribute’ of null

Yet if loaded in separately, they’re fine…

Any ideas?

  • 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-17T21:30:16+00:00Added an answer on June 17, 2026 at 9:30 pm

    Try using the following url to load the webfonts api:

    <script src="//ajax.googleapis.com/ajax/libs/webfont/1.1.2/webfont.js"></script>
    

    Check the following post for more details: https://groups.google.com/forum/#!msg/google-ajax-search-api/dWVzQF_YWCM/Y3-R738wh78J

    We no longer support partial version aliases for new versions of
    libraries. Any partial version aliases already in place will continue
    to be supported and updated. The reason is that URLs like
    https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js
    which is saying “give me the most recent version of jquery 1.x.x) have
    very short cache lifetimes since the most recent version can change at
    any time. This is bad for performance. This is also bad for your web
    site, in the event that a library makes breaking changes in its APIs
    between versions that cause your page to suddenly render differently.
    Libraries do not usually make such changes intentionally but pages
    sometimes depend on behavior of an unspecified corner case of an API
    that may be changed intentionally or inadvertently as the library is
    updated.

    So we strongly recommend that you specify the complete version string
    when referencing libraries hosted on the Google AJAX APIs. You can
    always find the most recent version at
    https://developers.google.com/speed/libraries/devguide. In this case,
    the most recent 1.9.x version is currently 1.9.1 so we suggest using
    the URL
    https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
    to get a stable version and better caching.

    (Also, your example above doesn’t have a closing </script> tag. Just want to verify this doesn’t exist in your own code).

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

Sidebar

Related Questions

I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't

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.