Normally on Yii2 wouldn’t always load the bootstrap.js on our Web App, only when you use js dependent bootstrap widgets such as yii\bootstrap\Modal and etc.
You need add some code on the framework to always load the bootstrap.js on the Web App.
Open the file on the following directory: