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
Bootstrap 5 local inclusion plugin
Re: Bootstrap 5 local inclusion plugin
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
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
This is awesome!
Thank you!
Thank you!
Re: Bootstrap 5 local inclusion plugin
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
thanks
Re: Bootstrap 5 local inclusion plugin
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
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.
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
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
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