-
Notifications
You must be signed in to change notification settings - Fork 1k
Adds list_renderRowAfterColumns option #1850
Conversation
repeater-list option: list_renderRowAfterColumns to wait to append the row. This helps with some Firefox unresponsive script warnings
@interactivellama Any possibility of prioritizing this PR. We are seeing some bad bad things with the repeater in firefox when 500+ cells are rendered. |
@mtrepina @swilliamset is handling Fuel UX requests now, please ask him to prioritize reviewing this in their next sprint. Thanks. |
Also, @aheile can you please add a unit test for this that validates this solves the slow script problem? |
@swilliamset Here is a sample with lots of cells which averages 13-15 seconds for me in Firefox: Verses 7-8 seconds: |
@aheile what is the purpose of adding this as an option instead of just moving where the row gets appended to the body? Basically: what are the potential adverse effects of moving |
@CormacMcCarthy I would be fine with that. I was just trying to minimize any potential negative impact that I might not be aware of. |
Reading through the code a bit further it does look like there may be some potential side effects of doing it this way. Specifically, right now However, instead of passing in an option that has to be documented, etc, we should perhaps rip this portion out of the
and, if it is going to be necessary to call it, call it column by column after the row is appended to the DOM, roughly like this (this probably won't work, will need some adjustments):
|
Closing in favor of #1863 |
Adds repeater-list option: list_renderRowAfterColumns to wait to append the
row until its columns have already been appended to it.
This helps with some Firefox unresponsive script warnings in trying to render our repeater.