Skip to main content
Question

Widget jQuery Errors


timperkins
Forum|alt.badge.img+1

I’m the developer/webmaster for my local cycling club’s website. We have Strava widgets embedded, which display correctly, but they’re throwing the following console error:

Uncaught ReferenceError: jQuery is not defined

You can see the error (in the browser console) on our homepage:

https://sdbc.org

The issue seems to be with the Activity and Summary iFrame widgets - the Route widget (which uses a JavaScript include) doesn’t throw any errors.

Is there a solution for this? Or any plans to replace the iFrame widgets with JavaScript includes?

 

 

2 replies

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • 246 replies
  • April 7, 2025

The easy solution is to include jQuery in your site. If you don’t want to install your own copy you can pull it from a CDN - https://releases.jquery.com/. Be sure to include it before the iframe to embed club activities.

<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>

 


timperkins
Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • 1 reply
  • April 7, 2025

I’ve tried that putting that in <head> section, it doesn’t help.  Are you thinking it needs to be in the HTML section where the code snippet actual resides?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings