{county.Name} I load the county records from the server. There are about 3,000 of them. When the counties...">
Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Why LWCs cause 10-20 seconds of lag populating a small amount of elements on the page?

Asked by Swati Indhumathi Aug 7, 2021 700 views 1 answer
Share

About this question

Below is the LWC template:

<input list="counties">   

I load the county records from the server. There are about 3,000 of them. When the counties are loaded and the template updates, it hangs the entire page for 10-20 seconds.

This is a fairly small amount of elements to insert into the DOM.


Why are LWCs so slow when updating the DOM? What about them under the hood makes this such an inefficient operation


How can I speed this up, so that my autocomplete input can be populated by accurate information without hanging the entire page for 20 seconds?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.