Lazy loading is a design pattern commonly used in computer programming to defer initialization of an object until the point at which it is needed.
0
votes
0answers
9 views
Angular2 lazy loading export directive [duplicate]
I have a rather complex application setup. I will try to describe as simply as possible. I have a core module, a lazy loaded submodule and another lazy loaded child module. See below diagram:
[core]
...
1
vote
0answers
16 views
Lazy load images using AngularJS
I am using this plugin "https://github.com/Treri/me-lazyload" to lazy load images in my AngularJS application.
It works only for few images then it is not working.
This is my HTML :-
<div class=...
0
votes
0answers
13 views
markdown-it-imsize plugin without requirejs
I am using markdown-it and wish to allow for the specification of image size. I am not using RequireJS and am having issues. I tried the below:
var md = window.markdownit({
linkify: true,
...
2
votes
1answer
24 views
Spring Boot and transaction boundary
I'm using Spring boot for rest back end system with spring data ,
I have three main layers (controller,service , dao).
I annotated the service class with @Transactional and within one of it's ...
0
votes
0answers
18 views
Angular 2 Webpack lazy load component programmatically
I'm able to lazy-load component with router help, but I also need to be able to load it programmatically/manually via TypeScript and insert into HTML, how can I do that? (if I can do that at all)
P.S....
-1
votes
0answers
34 views
How to NOT print memory address in python
I have this old-style class to create lazy properties:
class lazyproperty:
def __init__(self, func):
"""The constructor function
"""
self.func = func
def __get__(...
0
votes
0answers
20 views
Load Vue's parent component and all nested routes lazily
I have an issue with lazy loading of my nested routes!
this is my parent route:
import ChildRoutes from "app/modules/child.route”;
routes: [
{
path: '/child',
component: resolve ...
1
vote
2answers
45 views
Sharing behavior between lazy loaded app parts
as the Polymer Starter Kit or the Polymer Shop demonstrate, we make use of lazy-loading in our Polymer application. This means we have a drawer-based layout and the app shell imports the drawer ...
1
vote
0answers
17 views
how to import angular2 feature modules from external domains
I am working on an angular application which acts as a container application and hosts and lazy loads multiple other angular2 applications as its feature modules. These applications are deployed as ...
2
votes
0answers
44 views
Vue.js 2.0 Lazy Loading
I'm trying to Lazy Load my components in Vue.js 2.0 (in a Laravel 5.3 project).
According to the documentation I should do it like this:
Vue.use(VueRouter);
const Forum = resolve => require(['./...
0
votes
1answer
27 views
How can react lazyload child route using react-router?
Now I am using react-route to control my routes!
You know I tried to build a single page app. There is only one entry file named
index.js
When index.js is too heavy loading time will very long. ...
0
votes
0answers
16 views
Load angular2 lazy loaded module from external file
I want to load module definition javascript file from external path at the run time for an angular2 lazy loaded module.
Currently I am trying to provide a custom
class LazyModuleFactoryLoader ...
0
votes
1answer
29 views
scala using a class argument a placeholder (or input variable)
Lets say i have a data structure that holds a parameterised type of data:
case class Terminal[A](value: A, name: String ="")
I can easily create a Terminal[Double] if i pass it a materialised ...
0
votes
0answers
19 views
Replacing a div id and changing css height (with overflow-y: “scroll”) breaks javascript lazy load
I'm doing 2 changes on a div with jQuery:
if (jQuery("#geodir-wrapper-content").length > 0){
document.getElementById("geodir-wrapper-content").id = 'geodir_content';
}
as well as:
jQuery(...
0
votes
0answers
20 views
How to remove duplicate data from child object called in entity framework?
var eventDetails = (from e in db.tb_Event
select new
{
e.EventID,
...
2
votes
0answers
24 views
Some times oc.lazyLoad not working properly in angularjs?
Am working on the Angularjs project in which there is requirement to load the css and js files on demand, For this purpose i used the oc.lazyLoad library in angularjs, but some times pages loaded ...
0
votes
4answers
47 views
Does FetchType.LAZY fetch anything in list or it's empty
Let's say i have a association as ,
class Department{
......
@OneToMany(fetch = FetchType.LAZY)
private List<Employee> employees;
}
Now when i fetch Department, will it fetch anything in ...
0
votes
0answers
42 views
Entity Framework Lazy Loading Error
I'm working with Entity Framework, and i've never had any problems with lazy loading, until now! I don't know why BUT this isn't working. Here is a couple of code snippets:
Under here the Entity PC. ...
0
votes
0answers
24 views
Loading chlid data using Eager loading in Entity Framework Include()
I want to load child data from tables in entity framework using eager loading, but I am not getting the desired result. I want tb_Event data and then the customer data referenced by this table and ...
0
votes
1answer
30 views
Is there a way to Lazy Load on full path only in Angular 2
The following paths should demonstrate my route configuration:
calendar/2016/11/15 = Day View (DayModule)
calendar/2016/11 = Month View (MonthModule)
calendar/2016 = Year View (YearModule)
Each view ...
0
votes
1answer
35 views
Angular2 Lazy loading Fails with a shared module
I've created an AccountModule that successfully lazy loads, but when I add my SharedModule to the AccountModule my app seems to forget all of my eagerly loaded modules and I get the error:
...
1
vote
1answer
25 views
lazyload: show div only when it's contained image loads
I'm using the lazyload plugin for loading all the images in my web. These images are each one contained in a div with also some description and buttons.
<div class="container">
<h5>...
0
votes
1answer
31 views
Lazy initialization in Spring DataJPA
happy new year:)
I have a Spring MVC project using Hibernate and DataJPA.
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "user_id", nullable = false)
private User user;
@ManyToOne(fetch = ...
0
votes
1answer
77 views
LazyInitializationException could not initialize proxy - no Session
My problem is that I'm getting LazyInitializationException.
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer....
0
votes
1answer
24 views
Facebook Comments Widget lazy loaded with Angular 2
In short: The Facebook Comments Widget only gets loaded the first time the page is accessed, after that it does not load anymore. I need a way for the script and anything else to be executed again ...
0
votes
0answers
6 views
Lazy Load Plugin Broke Site
I installed the Lazy Load plugin: https://wordpress.org/plugins/lazy-load. I Deactivated it and deleted all files. Removed files left in database still all my images on my website are not showing. I ...
0
votes
1answer
35 views
Big data amounts with Highcharts / Highstock (async loading)
Since my data amount becomes bigger everyday (right now > 200k MySQL rows in one week), the chart is very slow at loading. I guess the async loading method is the right way to go here (http://www....
2
votes
1answer
75 views
EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/home/home.module'
i'm trying to lazy load Angular 2 modules with the router, and i'm having this error:
error_handler.js:50 EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/home/home.module'
I tried ...
0
votes
2answers
34 views
Scrolling,Pagination or Load more Technique for UITableView in Objective c
Hai i am new to iOS App Development.In my project i am getting 4000 of response data from web service and i need to display it on tableview But the condition here is I have to display only 30 records ...
0
votes
0answers
33 views
Drawbacks of disabling Entity Framework lazy loading for certain query
Is there a drawback disabling lazy loading for certain query like this:
bool isLazyLoading = Context.Configuration.ProxyCreationEnabled;
Context.Configuration.ProxyCreationEnabled = false;
...
2
votes
1answer
64 views
What is wrong with this lazyload function logic to support print media?
I am using lazy load function for images in a section of my web page. (Basically the images currently shown in the viewport are fetched. Rest are not fetched from the server.) The following JavaScript ...
2
votes
1answer
42 views
Is it possible to Lazy load a component in Angular 2 like we can with a Module?
I have learnt that we can lazy load modules in an angular 2 application. But similarly is it possible to lazy load simply a component(instead of wrapping it in a module) :
https://angular.io/docs/ts/...
1
vote
0answers
45 views
Spring Data JPA: Switch between EAGER and LAZY when reading an object
My model looks like this:
Customer (Name, Age, ..)
Project
Rent
Fault
(and maybe deeper)
So each Customer has a list of projects. Projects have a list of rents. And rents have ...
1
vote
1answer
28 views
EF - how to prevent eager loading to load all nested entities
I've manay-to-many relationship between two entities: Categories <--> Items
public class CategoryMaster
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
public ...
0
votes
1answer
27 views
Load recylerView data at once (Stop lazy Loading)
I have a recyclerview with edittext in which values are pre-populated but, recyclerView by default implements lazy loading so, I only get values of data which are visible, is there any way to stop ...
0
votes
0answers
35 views
show images on tableview using lazy loading
I have a list of images encoded in base64 string. I want to decode back these base64 encoded images and display them in tableview using lazy loading. I have tried many methods which one is given below ...
1
vote
0answers
93 views
Angular 2 AOT and lazy loading without using Angular CLI
I am working with a very simple Angular 2 application, and I am not using the Angular CLI (for the sake of this specific question, please do not suggest that I use the CLI). When using the JIT ...
-1
votes
1answer
46 views
How to solve the definition of dependences with lazy loading js module (file)?
I have TypeScript with External modules (ES6 modules), that is resolved and compiled by the webpack and ts-loader in es5 bundle.
And also I have separate modules (usually it's file with class), which ...
1
vote
0answers
18 views
No LazyInitializationException in controller
On my project I'm using Spring Boot with Hibernate 5 and Postgresql 9.4. Now I'm facing a problem. I've got a @OneToMany relationship with LAZY fetching. When I try to get this collection outside of a ...
0
votes
0answers
25 views
R package : make internal data not lazy
I built an R package containing data with devtools (https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/).
I put the data in R/sysdata.rda because data are just used by my functions :...
0
votes
0answers
17 views
what to do after user scroll out from a gif to prevent lagging in browser?
OK I load a lot of GIF image in my project.
I use two image one animated and on no
like proposed in this http://stackoverflow.com/questions/5818003
I will load all the non animated image when page ...
0
votes
1answer
32 views
Preserve Hibernate Lazy loading in data transfer object design pattern
I usually work on 3-tier applications using Hibernate in the persistence layer and I take care to not use the domain model classes in the presentation layer. This is why I use the DTO (Data Transfer ...
0
votes
1answer
22 views
Entity Framework + Web API, return Entities (Complex, collections, etc) outside DbContext
Here is my situation. I use Entity Framework 4 with the Web API
The structure of my code is quite simple, I have the Service layer where all my rest API is organized, I have my Business logic layer ...
1
vote
0answers
16 views
Can not find module by Lazy loading in angular2 es5
I am wirting an app with Angular 2 in EcmaScript 5. By Implementing of "Lazy Loading" I get this error message:
Can not find 'DetailModule'.
That are my /src/app/app.module.js
var ngCore = require('...
1
vote
2answers
111 views
How to lazy load Angular 2 components in a TabView (PrimeNG)?
It is my app.component.ts:
import { Component } from '@angular/core';
@Component({
templateUrl: 'app/app.component.html',
selector: 'my-app'
})
export class AppComponent {
}
And this is my ...
0
votes
0answers
14 views
How to set up Slick Slide js lazy loading with srcset?
Have been looking for a way to set up Slick Slide with srcset but I haven't been able to find a clear method, wondering if anyone here has done it before?
I have the following in HTML:
<ul ...
0
votes
0answers
19 views
Does not fire Lazy Load owl.carousel2.js?
When you see a carousel of products, Lazy Load will only load one image.
To see the following images need flipping.
And Lazy Load shows again the same image.
Please help me with the solution ?
Below ...
0
votes
0answers
87 views
How to handle angular2 lazy loading route failure
I'm using angular 2 lazy routing. Client is bundled with webpack2 using AOT and angular-router-loader to lazy load children. Everything works as expected when the browser is connected, that is I can ...
0
votes
1answer
40 views
Lazily Initialize/Load a GXT Widget When Its Parent Becomes Visible
I am very new to GXT (and GWT/GWTP for that matter). I want to know if I can lazily load a GXT (4.0) [custom] widget when a modal Dialog that contains its panel is displayed (dialog initially not ...
1
vote
1answer
59 views
angular 2 load js library on demand when route call
working on angular2 web application, application libraries and dependencies increasing as time spent.. so now when my index.html page load it takes more time than usual.
there are near about 15-20 ...