When use Bootswatch theme unnecessary CSS file is being loaded.
In this case //cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css fill be loaded.

bootstrap_cdn:
  js:
    //cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js: { type: external, minified: true }
  css:
    component:
      //cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css: { type: external, minified: true }

bootswatch_cerulean:
  css:
    component:
      //cdnjs.cloudflare.com/ajax/libs/bootswatch/5.2.0/cerulean/bootstrap.min.css: { type: external, minified: true }
  dependencies:
    - bootstrap_barrio/bootstrap_cdn

Comments

super_romeo created an issue. See original summary.

hatuhay’s picture

Replacing full Bootstrap library with just bottstrap.js file

  • hatuhay committed 518d2a7b on 5.5.x
    Issue #3355329 by super_romeo, hatuhay: When use Bootswatch theme...
hatuhay’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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