Bootstrap 4: how to use NavBars without jQuery / minimal bootstrap.js?

The vast majority of pages on our site will only use GRID and NAVBAR. It makes no sense for us to load all jQuery and bootstrap.min.js on every page.

In fact, the only JS needed at all is the js to handle opening / closing NAVBARs on mobile requests.

Has anyone created a minimal, small .js that handles this?

I found a bundle for Bootstrap 3, but I can't see anything for Bootstrap 4.

thank

+3


source to share


1 answer


jQuery is required by Bootstrap and cannot be avoided.



As shown in the docs , you can only use the necessary Navbar components (collapse.js and utils.js).

0


source







All Articles