Changes between Initial Version and Version 1 of Ticket #62884
- Timestamp:
- 01/30/2025 04:37:17 PM (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62884
- Property Focuses javascript performance added
- Property Keywords needs-refresh removed
- Property Version 6.7.1 → 6.7
-
Ticket #62884 – Description
initial v1 1 Обнаружен баг, подробности тут 1 A bug has been found, details here 2 2 https://ru.wordpress.org/support/topic/total-error-otimization-in-nav-menu-js/#post-12237511 3 3 4 800 элементов навигационного меню создают проблему зависания страницы и неудобство использования — 800 это правильное решение в нашем случае, новый Муниципальный сайт, это уже далеко не блог 🙂 В нашем случае острая необходимость в том чтобы меню было хорошее и работало правильно.4 800 navigation menu elements create the problem of page freezing and inconvenience of use - 800 is the right decision in our case, the new Municipal website is far from being a blog 🙂 In our case, there is an urgent need for the menu to be good and work correctly. 5 5 6 Точно Вам говорю это не из-за Max Mega Menu, кто то из разработчиков упустил этот критически важный момент, в который упираются все серьёзные пользователи системы WordPress.6 I can tell you for sure that this is not because of Max Mega Menu, one of the developers missed this critically important point, which all serious users of the WordPress system run into. 7 7 8 Виновник испорченного кода в 6.7.1 … class-walker-nav-menu-edit.php ( 9 8 The culprit of the broken code in 6.7.1 … `class-walker-nav-menu-edit.php (` 9 {{{ 10 10 <div class="field-move-combo description-group"> 11 11 <p class="description description-wide"> … … 24 24 </p> 25 25 </div> 26 }}} 26 27 27 в этот edit-menu-item-parent и edit-menu-item-order загружается вся структура существующего меню (повторение 800). Т.е. каждый пункт меню содержит в себе select с повторением 800 итого 800*800=640000 и все это для javascript вызывает нагрузку до 10 минут для отображения страницы… 🙁28 the entire structure of the existing menu (repetition 800) is loaded into this edit-menu-item-parent and edit-menu-item-order. That is, each menu item contains a select with a repetition of 800, total 800*800=640000, and all this for javascript causes a load of up to 10 minutes to display the page… 🙁 28 29 29 Я исправил эту ошибку — время формировнаия страницы редактирования меню от 9 до 20 секунд(!) Ура победа.30 I fixed this error - the time it takes to generate the menu editing page is from 9 to 20 seconds(!) Hurray, victory. 30 31 31 В итоге перешел на новую версию 6.7.1 (она мне нравиться чистотой кода и скоростью), но сделал следующие исправления 32 As a result, I switched to the new version 6.7.1 (I like it for its clean code and speed), but made the following corrections 32 33 33 34 30/01/2025 34 35 35 Действие: Replace nav-menu object (all code files) in 6.7.1 from 6.6.236 Результат: Исправлена ошибка зависания интерфейса редактирования элементов меню, которая проявляется с версии6.736 Action: Replace nav-menu object (all code files) in 6.7.1 from 6.6.2 37 Result: Fixed the error of freezing the interface of editing menu items, which appears since version 6.7 37 38 38 \iwa.toprayon.ru\mnt\toprayon.ru\wp-admin\includes 39 class-walker-nav-menu-edit.php (файл вывода формы html шаблон) 40 39 `wp-admin\includes\class-walker-nav-menu-edit.php` (file output form html template) 40 {{{ 41 41 <p class="field-link-target description" style="display:none"> 42 42 <label for="edit-menu-item-target-<?php echo $item_id; ?>"> … … 50 50 <button type="button" class="button-link menus-move menus-move-right" data-dir="right"></button> 51 51 </span> 52 \iwa.toprayon.ru\mnt\toprayon.ru\wp-admin 53 nav-menus.php 52 }}} 54 53 55 \iwa.toprayon.ru\mnt\toprayon.ru\wp-admin\js 56 nav-menu.js 57 nav-menu.min.js 54 `wp-admin\nav-menus.php` 58 55 59 \iwa.toprayon.ru\mnt\toprayon.ru\wp-includes 60 nav-menu.php 61 nav-menu-template.php 62 class-walker-nav-menu.php 56 `wp-admin\js\nav-menu.js` 57 `wp-admin\js\nav-menu.min.js` 63 58 64 *************************************************************************** 59 `wp-includes\nav-menu.php` 60 `wp-includes\nav-menu-template.php` 61 `wp-includes\class-walker-nav-menu.php` 65 62 66 ПРЕДЛАГАЮ СДЕЛАТЬ ВЕСЬ ИНТЕРФЕЙС РЕДАКТИРОВАНИЯ НАВИГАЦИОННОГО МЕНЮ НА AJAX событиях. Не удаляйте интерфейс редактирования навигационного меню — это правильный путь, порядок, ядро, удобство для разработчиков и конечных пользователей. 63 ---- 67 64 68 С уважением, Алексей 65 **I suggest to make the entire navigation menu editing interface on Ajax events.** Do not remove the navigation menu editing interface - this is the right way, order, core, convenience for developers and end users. 66 67 Best regards, Алексей
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)