homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Using Google CDN for jQuery results in strange errors
Google CDN errors

5+ Year Member

Msg#: 4403040 posted 10:04 pm on Jan 2, 2012 (gmt 0)

I have noticed lots of javascript errors on my site that have to do with sites that we are not using, or involved with in any way. Here is an example of URLs associated with those errors



NOTE: please do not click on the links and report back that "nothing happens." That is what people have done on other forums. I am not trying to "get these links working". but rather find out where the code is coming from, as it is not in our code base.

I have no idea where these "foreign" javascripts are coming from as it is not part of our code base. I could post many other examples.

We do use some "foreign" (ie, not from our site) conversion tracking javascripts, such as Google Analytics and others. Also ShareThis and Google Plus 1. Plus we recently started using jQuery from the Google CDN.

To try to eliminate the cause of the errors, as a first step I "temporarily" replaced the Google CDN library with a copy on our server on 29-Dec-11. The errors from the "strange foreign websites" immediately stopped and have not recurred.

I have only seen positive comments about using Google's CDN. After a bit longer time if the errors don't recur, I might re-enable the CDN to see if the errors start back up again.

My question: could these be coming from addons that users have installed on their browsers, or are they coming from Google?



5+ Year Member

Msg#: 4403040 posted 11:41 pm on Jan 3, 2012 (gmt 0)

I have looked into this further and I have a theory that user-added toolbars are the cause of the errors. I would like some confirmation that this could be the cause.

Here is a more complete description:

Here are the most common example of those "foreign URLs:"


I am already aware that cloudfront is an Amazon service. There are numerous such errors starting back on 26-Jun-11. There is a pattern in which typically a dozen or two such errors occur in a short time from, all from a single IP address. Then there is a large gap of time. This makes me wonder if it could be something that a user does on their browser to use some facility of Amazon for example. Is your team aware of anything like this?

Another example:


The "babylonConduit" also occurred from a single IP over a short period of time, which also seems to imply something the user is doing.

More miscellaneous examples:


chrome://searchqutoolbar/content/toolbar.xul (seems more like this would be a Chrome issue, something that is in Chrome, but causes an error report)






I want to stress again that we do not use any of the above in our site, so they are coming from elsewhere.

I am starting to think that they might be toolbars that users have added to their browsers. And if so we should modify our javascript error monitoring to disregard all errors not coming from our site.

[edited by: tedster at 12:25 am (utc) on Jan 4, 2012]
[edit reason] de-link the URLs so they can be read [/edit]


WebmasterWorld Senior Member penders us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

Msg#: 4403040 posted 6:48 pm on Jan 4, 2012 (gmt 0)

How are you logging arbitrary JavaScript errors that might be specific to a users setup?

(Someone needs to fix that horiz scroll!)


5+ Year Member

Msg#: 4403040 posted 5:40 am on Jan 5, 2012 (gmt 0)

window.onerror catches any javascript errors and ajax is used to send an email to our webmaster.

I have gone ahead on the assumption that my thinking is correct and will no longer send the email unless the URL is from our site.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved