Skip to main content

Questions tagged [lazy-loading]

Lazy loading is a design pattern commonly used to defer initialization of an object until the point at which it is needed.

Filter by
Sorted by
Tagged with
0 votes
1 answer

onscroll not working in LWC

I am trying to implement infinite loading purely from js by using onscroll event in my LWC. Html: <template> <!--Some other html code--> <template if:true={showRecords}> ...
JackSparrow's user avatar
1 vote
0 answers

Implementing Lazy Loading with Lightning Dual Listbox

I need to implement lazy loading for a lightning dual listbox because I have more than 10k data to be put in the options and it is currently make the site hang/lag. I welcome anyone who have any other ...
Sya's user avatar
  • 11
1 vote
1 answer

Lazy loading LWC without datatable and loadMore

Let's say we have <template> <template if:false={isLoading}> <div class="cxd-history__container" onscroll={handleScroll}> <template for:each={historyList}...
pincet's user avatar
  • 919
0 votes
1 answer

Spinner when apex is loading LWC

Hi I am new in programming and salesforce. I want to add spinner like "" or just gif when my apex class ...
1skora's user avatar
  • 23
0 votes
1 answer

Salesforce - Lightning Database with lazyload and Sorting

How can we use lightning data table lazy load functionality with sorting of columns? As Lazy load only will bring certain no of records at a time then sorting actually is working on those set of ...
ab02's user avatar
  • 1
1 vote
0 answers

Is there any way to have a very lazy evaluation of Labels used in Salesforce Chatter messages?

I'm currently working for a company whose main language is German though they are an increasingly multilingual company. I have a requirement that when some event happens, notifications should be sent ...
Brian Kessler's user avatar
0 votes
1 answer

Not able to call "loadmoredata" function when scrolled to the bottom in data table lwc salesforce [duplicate]

I have created a lightning web component in which i am using lightning data table. Now, i am try to implement infinite lazy loading but unable to call my loadmoredata function. here is my code ...
Shubham's user avatar
2 votes
1 answer

Is there any way to make an Apex method parameter lazy?

Let's say I want to call a method like: doSomething(a.b.c.d.e.f()); I know that this might be an expensive operation and a, a.b, a.b.c, a.b.c.d, and a.b.c.d.e might all be null, however I would ...
Brian Kessler's user avatar
3 votes
2 answers

What is this technique called?

public static List<Holiday> holidays { get { if(holidays == null) holidays=[Select h.StartTimeInMinutes, h.Name, h.ActivityDate From Holiday h]; ...
John Lima's user avatar
1 vote
1 answer

Making the difference between null and not loaded fields

I have a scenario in which I need to know if a SObject has been loaded with some fields I am about to update. It has been loaded in another code layer, I just get it in input of my method. I am ...
Raphaël Fonrouge's user avatar
10 votes
2 answers

What are the best ways to achieve lazy load in Lightning components?

I have come across many discussions to improve the performance of Lightning components and everybody has their own approach and solution. What do you reckon is the best way to implement the concept of ...
Salesforcesmarty's user avatar