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 }
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bootstrap-cdn-libraries-3240195-1.patch | 535 bytes | esch |
Issue fork bootstrap_barrio-3240195
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
Comment #2
esch commentedHere is a patch.
Comment #4
hatuhay commented