You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Business Dashboard: should not load all comments until they're needed #25169
The Business Dashboard loads all filing comments when it initializes, even though the comments are not needed until a filing (ledger item) is expanded/opened. This slows the app's initialization and causes a lot of network traffic (and calls that the API has to respond to) unnecessarily.
observe in Network tab that the detail comments for all filings are being fetched -- they should only be fetched when the filing is expanded (same as documents)
Impact
Slower UI initialization and a ton of network traffic and extra API load that is not needed. The comments should be fetched when a filing (ledger item) is expanded/opened.
The additional delay, for the sample business noted above, is only 1-2 seconds (for about 20 comments). (If a business had more ledger items with comments, it would be more delay.)
Activity