classic-rocket
classic-rocket copied to clipboard
Add Bootstrap Native Carousel Plugin
Hello,
I know that the documentation says:
Only usefull BS plugin are added individually in _dev/theme.js (carousel and scrollspy are not loaded)
But I need carousel for some of my cms pages. What would be the best practice to load the plugin please?
CSS was quite easy to isolate to avoid unnecessary data to load.
I downloaded latest Bootstrap, opened bootstrap-4.4.1/dist/css/bootstrap.css copied lines 6401 to 6600 and created a new stylesheet named carousel.css where I pasted previous code and imported it by editing my child theme theme.yml.
Now I have to do the same with js.