D
D
del9937882017-01-28 17:39:28
JavaScript
del993788, 2017-01-28 17:39:28

Why does jquery hide and show lag so badly in yii2?

Hello. Here is such a primitive "select" https://jsfiddle.net/34h8d3ut/1/ terribly lags when used in yii2. On a regular site, or in jsfiddle, everything works like clockwork, without lags, but something incredible happens on yii2. The animation of appearance and disappearance takes about 4-5 seconds. It is observed in 3 browsers. Yii is clean, just installed. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-01-28
@Rou1997

It does not "lag" in Yii2, but on the page that Yii2 gives out, you should look for the problem in it.
I will not recommend profiling, since I have never used it in practice myself and I don’t really want to, but you need to be able to do basic debugging.
Is the page also clean, or is the problem in a particular "widget"?
The animation of appearance and disappearance takes about 4-5 seconds.
It is necessary to look at the scripts that it issues, deleting them one by one, perhaps somewhere there is a "crooked" solution like hooks on these functions, which slow down.
Another way is to debug jQuery itself, but it's tricky and that's for later if need be.
And sometimes the problem is not where you are looking for at all, maybe just the load on the processor is high due to something else. :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question