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.

learn more… | top users | synonyms (1)

5
votes
0answers
665 views

IKImageBrowserView lazy loading?

In order to work with the IKImageBrowserView, one must implement a datasource with the following methods – numberOfItemsInImageBrowser: – imageBrowser:itemAtIndex: This is not dissimilar to ...
2
votes
0answers
48 views

Lazyloading plugin doesn't load images after scroll

I'm trying to use lazy loading for hundreds of images on website. It is just working when the page load and it show the photos on first screen size. After i scroll down any image load to the page. ...
2
votes
0answers
40 views

zend framework 2 controller factory conditional loading

I am searching for a proper way of handling creation of a controller via factory (to avoid strict dependencies to services in controller itself to allow unit testing). I have a controller with 2 ...
2
votes
0answers
68 views

Lazy Loading fails for no apparent reason? Only fails for two classes

Here is a class I currently use in my domain model... public class RequiredDeliveryDetails { [Key] public int RequiredDeliveryDetailsId {get; set;} public Nullable<DateTime> ...
2
votes
0answers
51 views

Lazy Load Images in LI Tag sequentially as a batch

I have UL tag which has around 2000 images in LI tag under it. They display as a carousel. I am trying to Lazy Load them, They show a Loader gif and then show the Original Image. <li> ...
2
votes
0answers
79 views

Lazy loading controllers that are in different modules

I am building a large Angular Application. I am trying to lazy load dependencies. So my application module in app.js looks like testApp = angular.module('SellerDashboard', [ 'ui.bootstrap', ...
2
votes
0answers
20 views

EntityFramework materializes collections not being enumerated

I have an entity that contains a collection of items that grows day by day. The problem is that when I do: entity.Items.Add( item ); EF materializes the entire collection (I guess that's because ...
2
votes
0answers
353 views

unloading/destroying Angular lazy loaded components

I have a setup that is similar to the post found here http://ify.io/lazy-loading-in-angularjs/ to handle lazy loading various components of my app in Angular. The problem I'm having is that the more ...
2
votes
0answers
88 views

Accessing an Eager loaded property which is null cause lazy load

I have eager-loaded a property on an Entity. If the FK-reference for that property points to a non-existing item (i.e the value -1), the property is (naturally) not loaded. However: For some reason, ...
2
votes
0answers
3k views

Primefaces -> DataTable - Lazy Loading

I have a problem with DataTable - Lazy Loading. I think the problem is in IdiomasBean.java (the equilavent to TableBean.java), if I put: public IdiomasBean() { } public LazyDataModel<Idiomas> ...
2
votes
0answers
1k views

Hibernate generate m + 1 queries in Many-to-one

My problem is very simple but I don't know how to make Hibernate does the way I want: - table MainTable have Many-2-One with ParentTable (with 100 rows). MainTable point to m=26 rows out of 100 rows ...
2
votes
0answers
327 views

Unable to proxy a JBossMQ queue in Spring

Spring JMS going against a JBoss 4.x JBossMQ queue (I know, old JBoss, JBossMQ superseded by JBoss Messaging, but I can't change the stack). Everything works when the Spring JMS configuration is ...
2
votes
0answers
508 views

Lazy load a collection of data from a service, not the database

My domain objects support custom fields that are stored in such a way that requires metadata and logic to be applied before their values can be stored and retrieved. I already have a Custom Field ...
1
vote
0answers
12 views

Lazy loading proxy also loads entity from database while accessing primary identifier

I'm using $entityManager->getReference() to get a proxy for my entity. When I call the getter for the primary key Doctrine will intialize the proxy and execute a SELECT query. I expect this only to ...
1
vote
0answers
29 views

How to release JDBC connection after accessing entities outside the transaction?

My application uses JPA with Hibernate as the provider, and spring-managed local transactions. In order to maintain a "long-running persistence context" or conversation, the EntityManager is created ...
1
vote
0answers
43 views

How to Modularize AngularJS app(folder structure)?

assume i am going to strart new angularjs app with 3 modules 1.login 2.payment 3.enquiry i want to load payment module with login details similarly for enquiry . how can we achive this i will have ...
1
vote
0answers
82 views

Filter a lazy dataTable with dynamic columns

I have a dataTable with dynamic Columns: <p:dataTable id="bookings" var="booking" value="#{tableBean.dataModel}" widgetVar="bookingTable" filteredValue="#{tableBean.filteredFields}" ...
1
vote
0answers
127 views

how to filter data with primefaces datatable lazy?

I'm trying to use the p:datatable to list a previously search result but filters does not work. i use primefaces 5 , jsf 2.2 and spring framework. i try to do like this demo (as shown in showcase, ...
1
vote
0answers
64 views

Lazy loading jQuery modules with RequireJS

I am developing a web app using jQuery and RequireJS for dependency management. Some of my Javascript files have to be loaded lazily when some events happend, so I have written these events like this: ...
1
vote
0answers
54 views

Convert complex Business object to ViewModel?

I have a following object: public class Category { public override long Id { get; set; } public override string Title { get; set; } public override int MaxDepth { get; set; } public ...
1
vote
0answers
89 views

Lazy loading with JPA criterea

I implemented a generic solution for using lazy loading primefaces datatables using JPA Criterea. However I am still having some doubts with thie implemented solution whenever we deal with several ...
1
vote
0answers
192 views

How to update other component AFTER filtering lazy dataTable in primefaces

is there any possibility to update other components AFTER filtering a lazy datatable? <p:dataTable id="dataTable" value="#{NewsBean.items}" binding="#{NewsBean.items.dataTable}" lazy="true" ...
1
vote
0answers
141 views

Handlebars.js: Render large data without blocking UI – deferred or lazy loading using setTimeout()?

I want to load a large amount of data into a HTML table using Handlebars, but the web browsers tend to freeze. So I am looking for a way to prevent the user interface from blocking. Modifying the ...
1
vote
0answers
71 views

Angular Lazy Loading - Is it okay to retain the providers?

Out of the box Angular does not support deferred script loading. I have created a solution to this problem, but have a question about the way in which it is done. In the exampleModule.config() below ...
1
vote
0answers
229 views

dynamically loading angular directives not being added to $compileProvider

I can not for the life of me figure out why this is not working. The directive file is loading but the actual directive isn't being loaded into angular as it should at defer.resolve() in the ...
1
vote
0answers
75 views

Uncaught TypeError: Cannot call method 'appendChild' of null when trying to lazy load script

I am trying to get angularjs to lazy load script files found in a ng-include but no matter what i do i can get pass this error. The error as far as i can tell is caused by chrome from a script call ...
1
vote
0answers
62 views

slow loading using initWithContentsOfUrl

I have a web service and I make HTTP calls to it from cocoa using this line of code: NSData *imageData = [[NSData alloc] initWithContentsOfUrl:url options: NSDataReadingUncached error:&error]; ...
1
vote
0answers
80 views

i am trying to load images from server in my android app using lazy image loader but it doesnt display

i am trying to load images from server in my android app using lazy image loader but it doesn't display. Access the image URL through JSON and pass to Lazy Loader still it not work. plz give ...
1
vote
0answers
62 views

Could not initialize proxy - no Session: reattach entity

I need an experimented person's point of view. What I am trying to do is a voting system. I have a list of demand, u can vote either: ok or ko. In myJSP: Demand | ok | ko | If the person hits ...
1
vote
0answers
96 views

Control over LazyLoading children collection (Entity framework Code-First)

We have 3 tables Teachers, Students, StudentFriendlyNames. Teachers has 1 to many relation with Students like: public Teacher { public virtual ICollection<Student> Students { get; set; } } ...
1
vote
0answers
189 views

Hibernate Lazy Load and @Transient

I have a Java Spring MVC controller application. It uses hibernate 4 and spring 3. Using Bitronix transaction manager Here are some of my model classes User.java public class User implements ...
1
vote
0answers
138 views

Images only update after scrolling UITableView

I have a horizontal scrolling table view. Each cell takes the whole screen to show full pictures. I'm doing lazy loading of the pictures. The problem I'm having is that when the pictures finish ...
1
vote
0answers
435 views

Implementing endless scroll for grid view images in android app

I am building a google image searcher app which returns results in a grid view. I want to implement the endless scrolling mechanism to load images asynchronously. I have created a new class for ...
1
vote
0answers
185 views

how to implement lazy loading as facebook load its content on scrolling

I am implementing a webpage in which I want to apply lazy loading for the images in such a way that when page loaded, some images(ex. 20 images) load at once and others will load on scroll. After ...
1
vote
0answers
62 views

NHibernate Lazy Loading based on entity filter condition

I am new to Nhibernate and was going through the Summer of Nhibenate videos. I have a doubt regarding lazy load. Say I have a Customer Class which has a list of order. class customer { public ...
1
vote
0answers
42 views

Is there a JSF render tree preprocessor that collects the entity graph used by a facelet page?

I've recently decided to do away with lazy loading in the view layer and fetch everything up front, since performance was just not acceptable for complicated views with >100 queries per page (to be ...
1
vote
0answers
178 views

not able to lazy load in phantomjs

I'm trying to scrape some information from the link (http://www.myntra.com/women-sarees?nav_id=606) that involves lazy loading. Below is my code snippet for this: window.setInterval(function() { ...
1
vote
0answers
62 views

how I define my model using lazyloading = true

How I define my model using lazyloading = true in MVC 4? I am trying to load my foreign keys. Now my query is coming null. In my web api query comes right. I did not use the "virtual". My ...
1
vote
0answers
89 views

how can i use eager loading by include in entity framework by navigation property which determined to virtual?

I have MVC web application project and i want to have lazy loading then i used virtual key words in my model object in navigation properties ,but i want in one method i called it getmanualylist() in ...
1
vote
0answers
42 views

Caching EF domain objects: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection

I know this exception is caused by some properties being defined as virtual and therefore it's trying to load them lazily after the context has been disposed. However, I don't want to load the ...
1
vote
0answers
139 views

Lazy Loading NSTableView MAC OS X

I wants to implement lazy loading in my NSTableView, I am displaying image from url so My NSTableView not scrolling well. I am googling from last few hours. there are many tutorial for UITableView but ...
1
vote
0answers
170 views

Isotope loading and responsive margin in a Wordpress theme

I am actually working on a Wordpress project using Isotope http://isotope.metafizzy.co/ Here is my site : http://ocedille.virtualibrary.fr I've created my own Wordpress template and globally ...
1
vote
0answers
314 views

NHibernate + lazy loading + communication over WCF (using DTOs)

I've been coupling with this architectural/design issue the past few days. I am aware that this issue (or similar) has been discussed like hundreds of times, but nothing managed to clear up my mind. ...
1
vote
0answers
108 views

Lazy Load on event OR on scroll

Is it possible to have Lazy load fire on either a set event or scroll rather than just one or the other. I have a paginated list that I want to display images on a page change, but I still want ...
1
vote
0answers
178 views

Lazy loading with Backbone isn't working

I'm trying to use this lazy loading plugin in a backbone app, I adapted the template to work with the plugin and called and the plugin script in but when I update the browser it seems that all the ...
1
vote
0answers
466 views

Doctrine 2. How to force entity from proxy

I have 3 entities: /** * @ORM\Entity * @ORM\Table(name="table_a") */ class A { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue */ protected $id; /** ...
1
vote
0answers
248 views

Compining jQuery Isotope & Lazy Loading By Google PageSpeed Service

Running into an issue using the default settings of Google's PageSpeed Service and a fluid layout for isotope - the issue is visible in the initial rendering here: http://www.candid.io/queenwest/ ...
1
vote
0answers
121 views

Reading from files lazily in node.js

I've tried this simple code using node-lazy: var productStream = function (readstream) { return new Lazy(readstream) .lines.forEach(function (line) { console.log(count++); if (count ...
1
vote
0answers
244 views

jQuery Cycle with Lazy Load

I'm using Drupal 7 and created slides via jQuery Cycle. JS: $(document).ready(function() { $('#quicktabs-container-view__islerimiz__islerimiz > div').cycle({ fx: 'fade', next: ...
1
vote
0answers
78 views

Force loading of extra-lazy assoc in Doctrine2 for unit testing (no DQL)

I'm running into a small problem with unit testing in Symfony2. I have a few associations marked as extra-lazy, which is fine. However, when testing them, they don't get loaded (of course), which ...