Questions tagged [lazy-loading]

For programming questions about "lazy loading", a design pattern that defers initialization of an object until the point at which it is needed.

Lazy loading is a commonly used in computer programming to defer initialization of an object until the point at which it is needed. It can contribute to efficiency in the program's operation if properly and appropriately used. The opposite of lazy loading is Eager Loading.

5918 questions
2
votes
1 answer

Django ORM Limit QuerySet By Using Start Limit

I am recently building a Django project, which deals with result set of 20 k rows. All these data is responses as JSON, and am parsing this to use in template. Currently, I am using objects.all() from django ORM. I would like to know, if we can get…
One Search
  • 23
  • 4
2
votes
1 answer

React lazy load dynamic import load component on Click of a button

I am using code splitting for my enterprise application as I want the first time user experience to be seamless. I bumped into an issue where I want to PRTEFETCH a Component (Page 2) before it can be displayed. Example: I am on Home Page -> Then I…
Gauri Padbidri
  • 371
  • 4
  • 15
2
votes
0 answers

Angular 10: Bundle creation for lazy loaded modules

I have a service which uses xslx library to create a excel report. Since xlsx is pretty big and its only used in one place I want to put the service and also the dependency into a lazy loaded module. So far everything works fine: I lazy load the…
2
votes
1 answer

ReactJS Code Splitting causes an error when loading Bootstrap through WebPack into Wordpress

I am currently using a WebPack configuration that allows for the direct injection of ReactJS into a site. This compiles all of the React code into a single index.js, and I am trying to code split it because the file is getting very large. Without…
2
votes
1 answer

How to specify a lazy-loaded collection should be sorted in NHibernate?

Is there a way to specify an order-by clause in my config XML to instruct nHibernate to lazy-load a collection property sorted by a particular property of the collection members?
Jason Barile
  • 936
  • 1
  • 6
  • 17
2
votes
1 answer

Lazy loading dojo tree powered by JsonRestStore and jsonp

I am trying to implement a cross domain, lazy loading tree using the Dojo toolkit. So far I have the top level nodes displaying correctly, but on clicking the expando I get a "deferred has already been resolved" error and I'm not sure why. I can…
Robbie
  • 445
  • 5
  • 13
2
votes
1 answer

Wordpress 5.5 Lazy Loading on Custom img Tags

Is there anyway to trigger the Wordpress 5.5 Lazy Loading feature on custom img tags? This article mentions that "By default, WordPress will add loading="lazy" to all img tags that have width and height attributes present." When I try to add an…
2
votes
1 answer

InfiniteScroll using ScrollView - React Native

I have a list using the ScrollView of react native itself. Basically, I build a list dynamically through an API return. async fetchData(userSearch) { const {route} = this.props; const {params} = route; const {type} = params; …
2
votes
2 answers

Angular 9 NullInjectorError on Resolver Service in sub-sub-lazy loaded Module

I have an Angular 9 app. It has a lazy loaded module, which in turn has a child lazy loaded module. The SubSubModule has its own SubSubRoutingModule. There is a SubSubThingRouteResolver that is only needed in SubSubRoutingModule, and it's this route…
emery.noel
  • 1,073
  • 1
  • 9
  • 24
2
votes
1 answer

Angular Lazy loading: loadChildren different behaviours

Guys i have an angular application with lazy loading enabled and below modules. CoreModule, (import in app module) SharedModule, (imported in each module) ProjectsModule, AuthModule And this is my app routing module: { path: "", …
2
votes
1 answer

scrollIntoView not working properly with lazy image load

I am having trouble getting scrollIntoView API working correctly when there are lazy image load on the page. Essentially, when the page loads, I grab the element via querySelector and when it scrolls, the focus is off due to the image loading (it…
Alejandro
  • 2,266
  • 6
  • 35
  • 63
2
votes
2 answers

Ready to use iOS UIScrollView with lazy loading of cells for displaying a "shelf" of book covers?

I want to display a number of book and magazine covers in my app (similar to the shelf view in iBooks). So far I have implemented my own UIScrollView which displays the covers just fine - unfortunately due to performance problems, I'm forced to…
BastiBen
  • 19,679
  • 11
  • 56
  • 86
2
votes
0 answers

Getting whitescreen in Cordova application if I implementing React lazy loading with Suspense

Getting whitescreen in Cordova application if I implementing React lazy loading with Suspense if I remove lazy loading it is working fine.
BHAR4T
  • 338
  • 3
  • 14
2
votes
1 answer

Can anyone tell me the flow of router that how it treats the route configuration and nested routes in lazy-loaded modules?

I want my lazy-loaded module in their children components to be parameterizly loaded in one . My app.routing.module is const routes: Routes = [ { path: 'dashboard', component: DashboardComponent }, { path:…
Muhammad Mehdi
  • 531
  • 1
  • 5
  • 14
2
votes
2 answers

Error creating bean with name 'passwordEncoder': Requested bean is currently in creation

I have a issue when I try to start Spring Boot project: 11:32:32.609 [main] DEBUG AnnotationConfigApplicationContext[doClose:1006] - Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@258e2e41, started on Thu Jul 16…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808