Jquery Library Only Loads At Bottom Of Page

I just installed Yii2 and by default the jquery.js library loads at the very bottom of the page. Where do I change this so jQuery loads in the head?

Why do you need it? It will increase your page load time?

certain jQuery plugins break when it’s loaded at the bottom

You need to override jQuery bundle https://github.com/yiisoft/yii2/blob/master/docs/guide/structure-assets.md#overriding-asset-bundles and in jsOptions specify [‘position’ => yii\web\View::POS_HEAD].

this is not the answer, but a goot tip.

put your jquey plugins in a assetsBundle, and load it with jquery dependency. so yii will take care to load the necesary js, and css files.