Perf: Reemplazar datalist pesados por autocomplete masivamente en Edi…#1914
Open
aparellosgz wants to merge 1 commit intoNeoRazorX:masterfrom
Open
Perf: Reemplazar datalist pesados por autocomplete masivamente en Edi…#1914aparellosgz wants to merge 1 commit intoNeoRazorX:masterfrom
aparellosgz wants to merge 1 commit intoNeoRazorX:masterfrom
Conversation
…tDireccionContacto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema:
La vista [EditDireccionContacto.xml estaba utilizando widgets de tipo
datalist(para provincias y ciudades) yselectcargando miles de opciones simultáneas. Al renderizar las direcciones usando unListView, se inyectaban decenas de miles de nodos DOM innecesarios ocultos por fila, lo que colapsaba el procesamiento de Javascript del navegador y producía bloqueos y demoras de más de 2 segundos en la interfaz.Descripción
Se han reemplazado las 3 columnas para utilizar el componente
<widget type="autocomplete">. El Autocomplete mantiene el formulario optimizado con un único campo de texto de entrada mientras facilita dinámicamente la búsqueda y el autocompletado nativo mediante AJAX (solo cuando el usuario teclea), sin perjudicar la carga del DOM. Esto devuelve el rendimiento y la fluidez a la pestaña de Lista de Contactos.¿Cómo has probado los cambios?
Toda modificación debe haber sido mínimamente probada. Marca o describe las pruebas que has realizado: