-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why still using deprecated jQuery(document).ready()? #14620
Comments
Relates #13839 |
Related to #14338 |
Resolved by 3a8feb1 |
Complete removal of the |
My mistake. Only
|
This is not correct. The jquery document continues (see here): |
This issue helped me understanding jquery syntax 👍 |
yii\web\View
uses not recommended way to include scripts in POS_READY section.jQuery recommends to use
instead
Also see in jQuery docs:
One more thing. You can pass jQuery object to handler with
$
:And one more thing. To use
$
safely in POS_LOAD section constructionjQuery(window).on('load', function () { });
can be placed intojQuery(function ($) { });
:Additional info
The text was updated successfully, but these errors were encountered: