How to use Bootstrap without Tether

WP Bootstrap
2 min readApr 22, 2021

Bootstrap without Tether, why would you need it?
As a web developer, I’ve always liked Bootstrap. Undoubtedly, the most popular UI framework, Bootstrap with its version 4.0 is now stronger than ever. However, if you work with Bootstrap v4.0.0-alpha.6, you already know that this version comes with two dependencies: jQuery and Tether. While jQuery is expected and certainly necessary, we believe that Tether should be optional. By optimizing websites for Google’s search engine, including this one (based on Jekyll), we wanted to reduce the number of Javascript files loaded by the page as much as possible. Removing the tether library alone obviously generates a Bootstrap error: Bootstrap tool tips require Tether. What’s the solution then?

How to use Bootstrap without Tether?
Or how to remove the error: Bootstrap startup tips require Tether? This question is often put on the internet, but most of the answers do not really offer the ideal solution.

Bootstrap 4 needs Tether, so you need to include tether.min.js before including bootstrap.min.js
source: stackoverflow

Yes, this is the logical thing to do when this error occurs, but what if we don’t want to add a new Javascript to our upload time? First, it is important to understand why Bootstrap requires a Tether library. This way you will know if this solution suits your needs. As you might probably realize, Bootstrap needs Tether for tool tips. If you don’t know what the tool tips are:

bootstrap without tether

So if you don’t intend to use tool tips on your site, you’ll be able to use the tool tips on your site. (or use a different way to integrate them, other than the built-in), then this solution is right for you. Simply replace the current bootstrap file.js with the file you can download below. Please be careful, this is a solution for Bootstrap v4.0.0-alpha.6. If you’re interested in a different version of Bootstrap without Tether, let us know in the comments and we’ll add it shortly.

Download Bootstrap without Tether
Download Bootstrap without Tether, a simplified bootstrap.js file that you can safely use on your site. web without adding tether library, so without receiving the dependency error: Bootstrap tool tips require Tether. The source of the .zip file is Github. Make sure you unzip it after the download is complete. You can take a look at Gist if you want to view the source first.

https://bootstrapstarter.com/

--

--