Skip to main content

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?

 

 

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>

 


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