Tagged Questions
0
votes
0answers
12 views
Isotope and LazyLoad not working
I've been trying to implement lazyloading along with Desandro's Isotope. I have managed to get it working to an extent but there are a few bugs I just can't iron out.
The code is based around Hugo ...
0
votes
2answers
37 views
AngularJS: lazy loading controllers and content
In this simplified scenario, I have two files: index.htm, lazy.htm.
index.htm:
var myApp = angular.module('myApp', []);
myApp.controller('embed',function($scope){
$scope.embed = 'Embedded ...
0
votes
1answer
32 views
How to describe hasMany relation using links in Ember.js?
I created model Consultation:
import DS from 'ember-data';
export default DS.Model.extend({
title: DS.attr('string'),
records: DS.hasMany('record', { async: true }),
currentUser: ...
0
votes
1answer
21 views
Spring MVC return hibernate object with lazy loaded field to AjaxResponseBuilder
Lets say I have an Person object:
String name = "bob";
Int number = 3;
String lastName = ?
and the lastName field is lazy loaded with Hibernate. When I want to
AjaxResponseBuilder builder = ...
3
votes
1answer
48 views
How can I lazy load or preload large background images on my site?
I'm new to javascript.
I am trying to lazy load some large background images on my page so that people will see the "loading" gif when the image is loading. I know how to do this on the HTML image ...
0
votes
0answers
23 views
How to eliminate html editing for the lazy load script
Well I wish to eliminate the html editing part for images like the data-src , class, src attributes which need to be added to implement the following lazy load script.
(function() {
function ...
1
vote
1answer
42 views
Default lightbox for images gets disabled on using lazy load
Well I was trying to make images load faster on blog using lazy load that's when the default lightbox for images got disabled.
Apparently there's something obstructing the lightbox functioning in the ...
2
votes
0answers
44 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.
...
0
votes
2answers
77 views
Javascript lazy load images by id
I have a page with a very long list of images and I'm looking to lazy load them. But instead of loading the images when they appear in the viewport, I want to load them in order of id when the page is ...
0
votes
1answer
24 views
Is there a design pattern/system for lazy loading bundled AMD modules without loading modules I've already downloaded?
Suppose I have a large single-page application which is built around AMD modules. When the user first visits the front page of this application, we want the initial JS payload to be reasonably light ...
0
votes
1answer
39 views
Firefox redraw very slow (5 secs)
I'm developing a lazy scroll table with resizeable columns. It retrieves data from the server if the user is scrolling to a position where the data is not loaded yet. Because I want to the user to be ...
2
votes
1answer
58 views
Lazy load images with knockoutjs
I am trying to lazy load images with knockoutjs binding.
I was able to lazy load images without knockoutjs framework but I am not sure how can i do that with knockoutjs binding.
Here is my HTML
...
0
votes
3answers
39 views
how backbone requirejs works for my case?
I am building an application using requirejs and backbone, I would like to load modules asynchronously after some actions.
say I have some modules like
authentication
module1
module2
module3
...
0
votes
1answer
38 views
Update a module value or re-register a filter in AngularJS
Is it possible to have a filter that depends on a lazy-loaded value?
In my case, a language pack is loaded asynchronously and the filter should reflect the loaded values once values are loaded.
// ...
0
votes
1answer
56 views
lazyload & masonry - difference firefox / webkit
am trying to make work masonry & lazyload together, on a responsive website where the bloc for masonry are in %.
I have read all the other post on this subject including this particular one :
...
0
votes
0answers
15 views
“Ready event” needed for lazy controller & partial template insertion
I am injecting controllers and template partials into Angular lazily with the help of $templateCache (see this related thread). That means, not all controllers and HTML templates are available at ...
0
votes
0answers
33 views
Javascript - Detect the undefined object key
I am planning to create a Resource service in AngularJS and inject this one service in my directives for use. I am using RequireJS for my resolving. To use a resource then, I want to call ...
0
votes
0answers
68 views
Lazy Loading HTML5 picture tag
I have been searching (unsuccessfully) for a reliable method to lazy load images while using the HTML5 spec for <picture>. Most solutions/plugins out there currently rely on using data- ...
0
votes
1answer
97 views
Is AMD (Lazyloading) really efficient?
I been developing a single page application which has become really huge now. I started off with Require JS and AngularJS, but there are too many components and loading a single page would make around ...
0
votes
2answers
111 views
Angular js - require js file from view using lazy load
How can i include multiple js files in lazy load, so when page finished to load and angular has been executed?
I tryed with a custom directive and the code looks like:
//html
<ng-lazy-load ...
0
votes
0answers
40 views
fix javascript issue on a page - wordpress
I have a javascript loading problem on one of my pages…i had tried to load in a wordpress lazy load app but it seems to have caused errors into my page. i've since removed it, but the problem still ...
0
votes
0answers
32 views
Cancel Lazy Loading if User has Scrolled Past image/element
I'm working on a site with a long "portfolio" page that features large images and embedded video content. For timeliness, I'd like to load the content as the user scrolls to it. My page also features ...
1
vote
1answer
108 views
AngularJS - inject trusted code from loaded content
I've hooked up a lazy loader in Angular. It pulls in full templates and extracts key information from that full template in order to populate a partial. This full page template has script tags which ...
0
votes
1answer
56 views
Lazy Loading Binding On Mouse Hover
I am using the following binding on each cell in a large HTML Excel like grid. Right now I am binding to every cell, is there a way to do this with lazy loading it on mouse hover over a certain delay ...
1
vote
0answers
136 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 ...
0
votes
0answers
12 views
VVO Lazyload loads all images on page load
I am using lazyload by VVO http://vvo.github.io/lazyload/ from quite a time but for this specific page I don't know what is going wrong. It loads all images when page loads, which are supposed to be ...
0
votes
1answer
748 views
Infinite Scroll - auto load next certain number of posts in background
I am developing a wordpress site using infinite scroll. It works fine. But I need to do some modification for visibly faster loading.
When the site is completely loaded, I want to load few more posts ...
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
223 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 ...
0
votes
2answers
62 views
Dynamically loaded html in div does not allow interaction
I have a main html page that loads other html pages into a div using jQuery. Like this:
$('.controlPanelTab').click(function() {
$(this).addClass('active').siblings().removeClass('active');
...
0
votes
1answer
587 views
Download script with dynamic src using Angular
Angular provides was to dynamically load templates with dynamic names via ng-include. Inline JS and CSS in that partial will load fine, but there is not a good way to download scripts with dynamic ...
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 ...
0
votes
1answer
256 views
Lazy Loading and Multiserving Images using bLazy
I am using(trying) a lazy loading script called bLazy found here->. The script also supports multiserving of images but I cannot seem to get it to load images if the veiwport is smaller than 1298px ...
0
votes
1answer
77 views
How to run a javascript function when a page dynamically loads content
I am currently writing some Javascript code that adds some tags across text in an HTML file after the page loads. I use the
window.onload
method for achieving this.
However, I am facing an issue ...
0
votes
2answers
841 views
angularjs + requirejs = Argument 'controller' is not a function, got undefined
Hi i am trying to implement angularjs + requirejs but i get Argument 'HelloWorld' is not a function, got undefined error when i go to desired path
app.js
require.config({
baseUrl: "",
paths: {
...
0
votes
1answer
211 views
RequireJS - Lazy load templates on Marionette ItemView
I'm trying to lazy load a template for a Marionette ItemView but things are not working the way I expected.
Following some tips about how to override the getTemplate method, I did the Following:
...
2
votes
2answers
56 views
Prevent image loading with angular
I am looking in building a simple email client and I am stuck at the point, where the client should ask if the user wants to see images/hide them on spam messages. Any approaches are welcome.
How ...
0
votes
1answer
327 views
Images not showing until scroll with Lazy Load plugin
I'm developing a phonegap app and I'm using the Lazy Load plugin (http://www.appelsiini.net/projects/lazyload).
The problem I have is that images do not show until the user scrolls. I have a demo ...
-1
votes
1answer
98 views
How do you implement lazy loading for a jQuery selector inside a JavaScript module?
I have written the following block of code and it works in my scenario but I know it is dirty:
var navbarModule = (function($) {
var self = {};
var $login;
self.hideLogin = function() {
...
0
votes
0answers
112 views
Masonry with Lazy Load doesn't load images properly
I'm experiencing problems when running Lazy Load together with Masonry. At the page there is a grid containing images. Once the images within the visible browser field has been loaded they are ...
0
votes
2answers
73 views
Using javascript LazyLoad with asset precompilation
So here's my problem. I'm using the LazyLoad plugin for loading javascript files without blocking the page from rendering. This is how i'm using it:
...
2
votes
2answers
708 views
jQuery load #div from page that has AngularJS content
EDIT Ok, guys thank you all. I now got that my approach was wrong and that jQuery and AngularJS architectures don't really bode well together. I will try to approach it with pure AngularJS way(the ...
0
votes
0answers
31 views
Generate a new row when Press Ctrl + R in ASP.NET
I am implementing Infinite scroll images in my site. I followed this site step and it works fine till now.
But the problem is that,when i Press ctrl+r to reload the page at that time generate blank ...
0
votes
1answer
47 views
How can I add panels to an existing carousel?
For one of my client's brochure websites, I am using the Bootstrap carousel. The carousel has 6 panels, each displaying a fairly large image.
To speed initial load time, I'm toying with the idea of ...
1
vote
1answer
135 views
Best practice for lazy loading in JavaScript
What's the best way to dynamically load HTML content and inject it in the page (when the HTML contains both <script src="..." /> tags and function calls to those scripts)?
Consider this ...
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',
...
0
votes
0answers
51 views
JQuery Mobile Listview:How to display JSON response
I am getting around 500 results from my query as json.
I want to get first 50 results and when the end of the list is reached to get the next set of 50 or 100 or even more results. Or display page ...
0
votes
1answer
81 views
Is there any reason to lazy load scripts and styles in javascript singplage app?
Many people convert all js/css files in one global javascript/css file, but still somebodies use lazy loading. Which aproach is more efficient and on what it depends?
0
votes
0answers
63 views
Triggering the right event for lazy loading of images on a web page
I am considering using HtmlUnit / PhantomJS tools to programmatically read the complete pinterest.com webpage (eg. http://www.pinterest.com/search/pins/?q=nivea). The images are lazily loaded into the ...
0
votes
0answers
140 views
Lazy Loading WordPress Images
I have implemented lazy loading function for images on my custom WordPress theme, it works perfectly. The idea is to save the original source in a "data-src" attribute and then using JavaScript place ...