Skip to main content
Question

Widget jQuery Errors

  • April 2, 2025
  • 2 replies
  • 64 views

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
  • 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
  • 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?