Page 1 of 1
Bootstrap 5 local inclusion plugin
Posted: Sun Jun 11, 2023 4:43 am
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
Re: Bootstrap 5 local inclusion plugin
Posted: Wed Dec 13, 2023 8:04 am
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
Re: Bootstrap 5 local inclusion plugin
Posted: Fri Dec 15, 2023 4:41 am
by kld997
This is awesome!
Thank you!
Re: Bootstrap 5 local inclusion plugin
Posted: Fri Dec 15, 2023 6:30 am
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

Re: Bootstrap 5 local inclusion plugin
Posted: Mon Jul 15, 2024 4:28 am
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
Re: Bootstrap 5 local inclusion plugin
Posted: Mon Jul 15, 2024 7:23 am
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

Re: Bootstrap 5 local inclusion plugin
Posted: Mon Jul 15, 2024 6:41 pm
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.
Re: Bootstrap 5 local inclusion plugin
Posted: Mon Jul 15, 2024 8:36 pm
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
