Problem/Motivation

Theme is loading both CDN libraries, which is causing conflicts with events. I noticed this when debugging why dropdown nav was not working.

Steps to reproduce

Choose the CDN option for loading library. Open a published page and view source files and you'll see both js libraries being served.

Proposed resolution

Remove the unbundled library from the `bootstrap_cdn` library entry.

My local solution:

bootstrap_cdn:
  js:
    #//cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js: { type: external, minified: true }
    //cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js: { type: external, minified: true }
  css:
    component:
      //cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css: { type: external, minified: true }
CommentFileSizeAuthor
#2 bootstrap-cdn-libraries-3240195-1.patch535 bytesesch
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

esch created an issue. See original summary.

esch’s picture

StatusFileSize
new535 bytes

Here is a patch.

  • esch authored 4023405 on 5.5.x
    Issue #3240195 by esch: Theme is loading both bundled and un-bundled...
hatuhay’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.