Bootstrap 5 local inclusion plugin

Post Reply
Joho
Posts: 14
Joined: Wed Jun 07, 2023 6:51 am

Bootstrap 5 local inclusion plugin

Post by Joho »

I was creating a Bootstrap 5 based theme for WonderCMS and needed to include Bootstrap 5 (obviously). Since I work a lot with GDPR, I also needed the inclusion to be local and not CDN based (since CDN:s can quite easily fingerprint visitors). I believe in modular design, so I made a plugin that includes Bootstrap 5 and serves it from the site (locally). That's all it does. I'll post the information about the theme in the correct section here.

You can download the plugin here:
https://github.com/joho1968/wcms-bs5-local



-joho
Joho
Posts: 14
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 local inclusion plugin

Post by Joho »

Thank you :) Yes, I'm a firm believer in staying on the right side of GDPR, and as a developer, making it easier for site owners to do the same.

I'm also a firm believer in that while the CDN way of doing things can be beneficial to the end user, it's not always as beneficial as it's trumped up to be.

The theme is alive and kicking, and has received several updates since its release.

The original theme post is here:
viewtopic.php?t=4070



-joho
User avatar
kld997
Posts: 13
Joined: Thu Nov 30, 2023 9:35 pm

Re: Bootstrap 5 local inclusion plugin

Post by kld997 »

This is awesome!

Thank you!
Joho
Posts: 14
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 local inclusion plugin

Post by Joho »

kld997 wrote: Fri Dec 15, 2023 4:41 am This is awesome! Thank you!
You're quite welcome. Feel free to request features/changes/improvements :)
Kusalo
Posts: 6
Joined: Mon Jul 15, 2024 3:33 am

Re: Bootstrap 5 local inclusion plugin

Post by Kusalo »

I am intending to develop my site locally, off grid, so the general call by theme and plugins to bootstrap (and jquery) is not helpful. I have copies of the respective .min.js files and wonder what gain there would be using this plugin, as opposed to just directing the call internally?
thanks
Joho
Posts: 14
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 local inclusion plugin

Post by Joho »

Kusalo wrote: Mon Jul 15, 2024 4:28 am I have copies of the respective .min.js files and wonder what gain there would be using this plugin, as opposed to just directing the call internally?
Probably zero in your particular use case. If you have all the files you want to include already, then you might as well just write the HTML to include them locally. But OTOH, using the plugin won't hurt and you won't have to worry about doing it yourself :D
Kusalo
Posts: 6
Joined: Mon Jul 15, 2024 3:33 am

Re: Bootstrap 5 local inclusion plugin

Post by Kusalo »

I am still exploring the range of included dependencies and it seems there are quite a lot - even two plugins loading two different versions of jquery. This seems a bit daft. See here: viewtopic.php?t=3174
I have posted here: viewtopic.php?t=4549
in the hope that some more experienced users might weigh in with comment/suggestions.

So it is not just bootstrap that will need a tweak.
Joho
Posts: 14
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 local inclusion plugin

Post by Joho »

Yes, this can cause problems.

The primary reason for my Bootstrap 5 local inclusion plugin was to try to make things modular. I have also released a Bootstrap 5 Theme for WonderCMS; that theme and this plugin play nicely :-)
Post Reply