Skip to content

Conversation

@nicoe
Copy link
Collaborator

@nicoe nicoe commented Apr 4, 2024

For performance reasons it's better not to mix DOM reading and modifying especially in JS loops.

PCLAS-772

For performance reasons it's better not to mix DOM reading and
modifying especially in JS loops.

PCLAS-772
@nicoe nicoe requested a review from JCavallo April 4, 2024 17:24
@JCavallo
Copy link
Contributor

JCavallo commented Apr 5, 2024

LGTM

@nicoe nicoe merged commit 5dfb48f into coopengo:master Apr 5, 2024
nicoe added a commit that referenced this pull request Apr 5, 2024
…W] (#187)

For performance reasons it's better not to mix DOM reading and
modifying especially in JS loops.

PCLAS-772
}
if (to_show.length) {
this.tbody.find(to_show.map(make_selector).join(','))
.removeClass('invisible').show();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Petit problème ici avec jQuery qui repasse un coup de recalculate style sur tout le DOM en itérant sur le body j'ai l'impression. J'ai cherché des solutions pour éviter ça mais no luck.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je pensais naïvement qu'en utilisant un selecteur ça ne ferait qu'une seule invalidation.

nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 3, 2024
…STOM]

PR: (coopengo#187)
Fix #21005

Co-authored-by: Jérémy Mousset <jeremy.mousset@coopengo.com>
nicoe added a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 3, 2024
…W] (coopengo#187)

For performance reasons it's better not to mix DOM reading and
modifying especially in JS loops.

PCLAS-772
jmousset added a commit to jmousset/tryton that referenced this pull request Jan 9, 2025
…STOM]

PR: (coopengo#187)
Fix #21005

Co-authored-by: Jérémy Mousset <jeremy.mousset@coopengo.com>
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Jun 16, 2025
…STOM]

PR: (coopengo#187)
Fix #21005

Co-authored-by: Jérémy Mousset <jeremy.mousset@coopengo.com>
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Jun 19, 2025
…STOM]

PR: (coopengo#187)
Fix #21005

Co-authored-by: Jérémy Mousset <jeremy.mousset@coopengo.com>
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 11, 2025
…STOM]

PR: (coopengo#187)
Fix #21005

Co-authored-by: Jérémy Mousset <jeremy.mousset@coopengo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants