A
A
alex995052019-06-24 10:40:38
Yii
alex99505, 2019-06-24 10:40:38

Why is jquery being requested twice?

The screenshot shows that jquery is loaded twice, but according to the project, the setting goes only once - jquery-3.4.0.min.js.
The page uses gridView, ActiveForm, bootstrap-switch - connected via js separately.
What causes the second challenge? It's not like this on all pages. But I can't tell the difference between them

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-06-24
@alex99505

You need to disable jQuery loading in Yii

'assetManager' => [
    'bundles' => [
        'yii\web\JqueryAsset' => [
            'js'=>[]
        ],
    ],
],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question