How can I avoid using the jsDelivr CDN?

Created on 9 March 2023, over 1 year ago
Updated 9 September 2023, about 1 year ago

Some years ago to make a child theme I chose the "cdn" starterkit with no awareness of what inside of it is still clearly declared: "Uses the jsDelivr CDN for all CSS and JavaScript". Just tonight I realized about that. Resorting to a CDN is not what I want, I'd rather like CSS and javascript to be fetched from the website host only. After all, why should I ever resort to a CDN when I installed a parent theme? What's the purpose of such a starter kit?

I couldn't even find in the files of the child theme any condition that would decide the usage of the CDN! :-(

Would you please suggest me some possibly easy way to make up for the mistake I made in the past?

Thanks in advance!

Andrea

šŸ’¬ Support request
Status

Closed: works as designed

Version

3.27

Component

Miscellaneous

Created by

šŸ‡®šŸ‡¹Italy AppLEaDaY

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

Comments & Activities

  • Issue created by @AppLEaDaY
  • Status changed to Needs review about 1 year ago
  • šŸ‡®šŸ‡³India ravi kant Jaipur

    @AppLEaDay
    It possible by following steps -
    1. Choose NONE from CDN provider.
    2. Download Bootstrap3 and extract on theme root.
    3. Update library as below code

    framework:
      css:
        theme:
          bootstrap-3.4.1-dist/css/bootstrap.min.css: {}
          css/style.css: {}
      js:
        bootstrap-3.4.1-dist/bootstrap.min.js: {}
    

    4. Cleared cache and refresh page.
    5. Now you will get accepted result.

  • šŸ‡®šŸ‡¹Italy AppLEaDaY

    Many thanks, ravi kant! Though I confess at the momentary Iack knowledge about the "libraries.yml" works... may I simply copy your code and paste it inside the libraries file in use beside what it already contains now, no matter what?

  • šŸ‡®šŸ‡³India ravi kant Jaipur

    @AppLEaDaY
    My code can copy but make sure that this type library is already not exist. You may set bootstrap files path in existing library also.

  • Status changed to Closed: works as designed about 1 year ago
  • šŸ‡ŗšŸ‡øUnited States shelane

    Iā€™m going to close this as an answer has been provided.

Production build 0.71.5 2024