Will not load external script on Firefox

Created on 1 March 2023, about 2 years ago
Updated 2 March 2023, about 2 years ago

Problem/Motivation

Firefox is blocking the external script cookieControl-9.x.min.js being loaded which then prevents any of the buttons functioning to set cookies and hide banners. Results in multiple CookieControl is not defined errors on click() events.

Have tried altering Firefox Security and Privacy settings, but doesn't seem to change behaviour, so not sure why this is just a Firefox issue.

Seems to work fine on webkit-based browsers.

Loading failed for the

with source “https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js
Not sure if this is a config issue, or feature request (host the JS file locally in /libraries) or a bug in the JS. Have noticed similar behaviour on other UK Local Authority websites that use this module.
Feature request
Status

Closed: works as designed

Version

4.4

Component

Code

Created by

🇬🇧United Kingdom robcarr Perthshire, Scotland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @robcarr
  • 🇬🇧United Kingdom robcarr Perthshire, Scotland

    Sorry, error message should be:
    Loading failed for the <script> with source “https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js”.

  • Status changed to Closed: works as designed about 2 years ago
  • 🇬🇧United Kingdom robcarr Perthshire, Scotland

    Whilst no ad-blockers were installed on my system, I had selected DuckDuckGo as the default search engine... and during the setup there's a nudge to activate a Privacy plugin... which blocks trackers. Had forgotten about that. Deactivated and all works fine. Interestingly this DDG plugin doesn't like embedded Tweets or Twitter streams either. However, I'd imagine DDG and FF is probably an edge case, as most users will default to Google.

    In Drupal's case it might be better to have the option to serve the JS file from a local library, rather than an external CDN.

Production build 0.71.5 2024