Hello,
How I can unregister jquery.js file in Yii2? or How I can change jquery.js position?
I used this code in AppAsset.php
public $jsOptions = [
'position' => '\yii\web\View::POS_HEAD'
];
but jquery.js file position not changed.
0 down vote accept
I got the solution! just open your config file config/web.php
under component paste this code.
'assetManager' => [
'bundles' => [
// you can override AssetBundle configs here
'yii\web\JqueryAsset' => [
'sourcePath' => null,
'js' => []
],
],
],
Now view source,jquery.js file removed.