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
6,010
questions
0
votes
0
answers
19
views
how to load lazily loaded route in mat-sidebar-content?
I've a structure in Angular and we are following module based structure. Not standalone components.
SideBar Component
<mat-sidebar-container>
<mat-sidebar>
/* Sidebar Menu Items */
</...
0
votes
0
answers
24
views
Eager Loading One-to-Many Relationship in Laravel Returns Empty Collection Despite Data Being Present
I'm facing an issue with eager loading in Laravel where a one-to-many relationship returns an empty collection, even though there is data present in the database. The same relationship works correctly ...
0
votes
1
answer
26
views
How to prevent a React component from freezing the page after loading?
I am using the following library uiwjs/react-json-view, it is the typical library to view json. The issue is that I want it to load a large json. But when it does, it freezes the page in the process. ...
0
votes
0
answers
9
views
How to get a list of slow mobile web pages without testing page by page?
Our website passes the desktop pagespeed insight test but the mobile version always fails it. We saw the detailed report of LCP failures. But how can we find out which were those slow pages dragging ...
0
votes
0
answers
18
views
lazy-loaded component using keep-alive in Vue2 only render once
I use keep-alive to cache some pages, and most of them work fine. However, for a few pages that use lazy-loaded component, the pages render normally when I refresh or open the page first time, but ...
0
votes
0
answers
12
views
NextJS Video loads only after full page load
im in a little dilemma right now. Basically I have a small video in the hero section. With ffmpeg and preload='auto' enabled (progressive download).
Issue being the placeholder renders but taking a ...
0
votes
1
answer
29
views
Lazy loading is returning empty array
import React, { useState, useRef, useEffect } from "react";
import {
collection,
query,
where,
getDocs,
startAfter,
limit,
startAt,
} from "firebase/firestore";
...
-1
votes
0
answers
22
views
Lazy loading in ngx-doc-viewer
I am using ngx-doc-viewer in my angular application. It is taking time to load large files. Is it possible to lazy load the document instead of showing it completely?
1
vote
1
answer
32
views
Lazy loading angular child routes with no common url ancestor
I'm using angular 15. In my main module's routing, I've got the following routes to lazy load the MediaModule
{
path: 'video-page',
loadChildren: () => import('app/myapp/submodules/media....
1
vote
2
answers
28
views
Angular, How lazy loaded components get crawled and indexed by google bot
we load angular component on scroll for better page performance but these component content not crawled by google bot. we have implemented angular ssr & prerendering. we are using scroll event
@...
0
votes
0
answers
57
views
.NET Core dependency injection Entity Framework lazy loading not available after insert / update
We were using a separate DbContext per function like this:
using MyEntities db = new();
This was fine, however since we have swapped to dependency injection, we have found that since the DbContext ...
0
votes
1
answer
29
views
Angular 17+: How to lazy-load 3rd party libraries that are only used by one standalone component
I have a large Angular app and need to reduce the bundle size.
I recently migrated to Angular 17 and made all of my components standalone, and started separating out which routes should be lazy loaded....
0
votes
2
answers
38
views
Angular - Lazy Loading Same Module with Two Routes
I have this routing currently in my app-routing module:
{
path: 'school',
component: SchoolComponent
},
{
path: 'student',
component: StudentComponent
},
{
path: 'student/...
0
votes
0
answers
13
views
how to use image lazyload on AMP blog using amp-script? I've tried it but the image still won't appear even though my amp is valid 100% full green
how to use image lazyload on AMP blog using amp-script? I've tried it but the image still won't appear even though my amp is valid 100% full green, do you have any suggestions for this problem? My ...
0
votes
1
answer
37
views
How can I make it so the loading screen is shown first, then the data gets fetched?
I am running into an issue where the amount of data that is being fetched is causing the app to lag a little bit. Nothing serious, just about half a second. How can I adjust this to where it shows the ...