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

Delete NgRx node by LazyLoading

I'm working in and angular 9 app implementing NgRx with lazy load when the app loads, my state looks like this and when I navigate to the route '/account-config' the state change becouse I have lazy loaded the module and implemented a…
Sergio Mendez
  • 1,311
  • 8
  • 33
  • 56
2
votes
1 answer

Loading custom module base on context in server side SuiteScript 2.0

I'm trying to load my custom module base on the condition. CustomModule.js define([], function(){ export { run: function(){ log.debug('run in CustomModule' } }; } And here is my user event script userevent.js define(['N/record'],…
Lin Shih Hao
  • 341
  • 1
  • 3
  • 10
2
votes
1 answer

C# Entity Framework lazy loading if not detached

I am trying to do some process against every object in my EntityFramework OnSave. Part of this process involves turning the object into a Binary object. It is taking FOREVER to Serialize and I am about 99% positive that it is because we are using…
James P. Wright
  • 8,991
  • 23
  • 79
  • 142
2
votes
2 answers

Angular Router Doesn't Display My Component

I have a Simple Angular 2 App with a Module(InformationPagesModule module) that contains two lazy load components (Info1 Component and Info2 Component). I want to load that components when entering the following routes in the…
AlejoDev
  • 4,345
  • 9
  • 36
  • 67
2
votes
1 answer

How to share ngrx state between lazy loaded modules, can we have a shared module to do so?

Want to implement shared store module for sharing state between 2 feature modules Can some one please share stackblitz or git repo link for shared state module
Naina
  • 21
  • 3
2
votes
1 answer

Vue: lazy loading from library (Bootstrap-Vue) inside a component

I am exploring the lazy-loading feature and I'm trying to use it for Bootstrap-Vue component, but it does not work. If I import the b-card "normally", it gets renderred correctly: import { BCard } from 'bootstrap-vue'; export default { …
Eggon
  • 2,032
  • 2
  • 19
  • 38
2
votes
2 answers

Chrome native image lazy loading works inside iframe only

Chrome 81, FF 75 (latest for today) in Chrome native image lazy loading works inside iframe only. why? in FF works good page1.htm(lazy loading does not work in Chrome but works good in FF):

Please scroll down. The…

Sand Lers
  • 23
  • 4
2
votes
2 answers

in angular, Circular dependency when using providedIn and forRoot

I am developing an angular library. it has an internal service. which is defined like below. Used providedIn to be tree-shakable. and didn't use providedIn:'root' because its internal and just used in the module scope. @Injectable({ providedIn:…
Stef
  • 203
  • 2
  • 9
2
votes
2 answers

Should I call ToList() inside foreach C#

Is this code normal? Should I call ToList(). If yes why? It is an entity framework. Or It doesn't matter and I may not call to list? var followers = from user in project.Followers where followersIds.Contains(user.Id) …
Mediator
  • 14,951
  • 35
  • 113
  • 191
2
votes
1 answer

Angular 9 - Dynamic Lazy Loading Module - The request of a dependency is an expression

I would leverage Angular Lazy-loading feature modules to fulfill a pluggable frontend. So the concept is create extension-points in my app where I can do something like this: import('./customers/customers.component').then(lazyMod => { here use…
Fabio Formosa
  • 904
  • 8
  • 27
2
votes
2 answers

How to asynchronously call a relation when lazy loading with Entity Framework 6.4?

I have a project that used Entity-Framework 6.4 to access data from the database. I have the following model public class Product { public int Id { get; set; } public string Title { get; set; } public bool Available { get; set; } //…
user13200557
2
votes
1 answer

SpringBoot + Hibernate JPA Lazy fetching mode still queries lists in an entity

I am doing a REST API using springboot and JPA. I am trying to lazy fetching an entity in a One to Many relationship. Teacher to courses. I can see the sql statements done by JPA as I have the debuging option on. In the controller, when calling a…
mikizas
  • 331
  • 5
  • 16
2
votes
0 answers

How to wakeup lazyloading on
expanding?

I use Lazy Load plugin from jquery.com https://plugins.jquery.com/lazyload/ Everything works great, but i got some
tags on page, with images and... When i click on detail tag i got: https://i.stack.imgur.com/OizhP.jpg And i have to scroll…
Luis
  • 21
  • 3
2
votes
1 answer

Hibernate lazy load field of embedded

I have the following structure: @Entity class Parent { @Id private String id; @Embedded private Child child; } @Embeddable class Child { @Column(...) private int fieldA; @Lob @Basic(fetch = FetchType.LAZY) …
Razvan
  • 347
  • 2
  • 12
2
votes
2 answers

Compiler warning when lazy loading component with dynamic import

i am using Angular 9 and its ivy compiler. I try to lazy load a component with the dynamic import function and the componentFactoryResolver: const comp = await import('path/component.ts').then(x => x.component) const factory =…
Havald
  • 691
  • 8
  • 9
1 2 3
99
100