Whenever you're ready, walk me through how you'd approach this.
Explain how you would optimize a slow-loading frontend component that handles large datasets.
Discuss how you would identify whether the bottleneck is network transfer, JavaScript processing, memory usage, or DOM rendering. Explain which optimization techniques you would consider and how you would validate that they improve both initial load and interaction performance.
Scope: Answer for a modern web application using JavaScript or TypeScript.