Questions tagged [deferred-execution]
219 questions
0
votes
1 answer
PBS deferred execution with job array
I'm trying to write a job array so that the individual jobs start at slightly different points in time. (Because the program I evoke uses the time of day to the nearest second as a random seed and it will generate identical results if all jobs are…

ahj
- 15
- 4
0
votes
1 answer
How to defer execution of an Event on each item in a collection until iteration of collection is complete using delegates and/or events?
Of Note: This is more of a curiosity question than anything else.
Given a List where each window has an event attached to the Close Event which removes the window from the collection, how could you use delegates / events to defer the…

Metro Smurf
- 37,266
- 20
- 108
- 140
0
votes
1 answer
Why are you not supposed to modify the DOM with deferred scripts?
I'm brushing up on my javascript basics, and the book I'm reading stated the following (paraphrased):
"Adding the defer attribute the script element is a promise to the browser that your script will not be making any changes to the DOM"
I was…

Andrew Aponte
- 560
- 4
- 17
0
votes
1 answer
Need jQuery's "when" functionality for mpromise/mongoose
Is there such a thing as a when clause for mpromise/mongoose? I'm looking to do something lke this without having to write my own wrapper for mpromise.
$.when(jQueryPromise1,jQueryPromise3,jQueryPromise3).done(function(r1,r2,r3) {
// success…

Thinking Sites
- 3,494
- 17
- 30
0
votes
2 answers
Can anonymous function be used to defer js on load?
I just read about deferring js on load. I found Particks article pretty interesting http://www.feedthebot.com/pagespeed/defer-loading-javascript.html.
I took a look at facebook and googles js code. They are all using anonymous functions so I was…

Manuel
- 9,112
- 13
- 70
- 110
0
votes
2 answers
Casting an IEnumerable to an IEnumerable while ensuring deferred execution
In my application there are a fair number of existing "service commands" which generally return a List. However, I wrote them in such a way that any queries would not be evaluated until the very last statement, when they are cast…

tacos_tacos_tacos
- 10,277
- 11
- 73
- 126
0
votes
3 answers
knockout: Do not evaluate computed observable on setter
Hi i have the following function.
function TaxModel() {
this.amount = ko.observable("");
this.percentage = ko.observable("");
this.tax = ko.computed(
{
read:function() {
return this.amount() *…

Chun ping Wang
- 3,879
- 12
- 42
- 53
0
votes
1 answer
Defer HTML generation via handlebars.js
We have a page that displays enormous amount of data.
Currently, the entire page is generated on the IIS server and then downloaded to the browser.
Due to the amount of code being executed on the server a performance issue is visible to the testing…

Chris Serrao
- 135
- 2
- 12
0
votes
7 answers
Meaning of (function(){ in Javascript
I'm looking to understand the difference between this code:
(function() {
and this code:
$(function() {
Does the first example run the code after document ready, as the second does? Or does it simply scope the function and nothing more?

Barney
- 1,820
- 5
- 29
- 50
0
votes
1 answer
Resolving associated objects in SL4 RIA
Having created a standard Silverlight Business Application in VS2010 and set up a model from a SQL Server database, I have various entities and associations, among which AssetGroup and Asset are in a 1:m relationship.
Allegedly I can use dot…

Peter Wone
- 17,965
- 12
- 82
- 134
0
votes
2 answers
What's the easiest way to queue JS to run after a library loads? (jQ at end of page)
It seems like very common practice to load scripts at the end of a page now / not in the . The problem is when you need to run some jQuery inline in the body due to template structure, variable access, etc., depending on project.
What is the…

Yuji 'Tomita' Tomita
- 115,817
- 29
- 282
- 245
0
votes
1 answer
Will adding partial class properties ruin deferred execution?
If I add properties onto a linq entity (employees for example), that simply refer to other properties to implement an interface, return an IQueryable, and the where clause mentions those added properties that just point to other linq entity…

Maslow
- 18,464
- 20
- 106
- 193
0
votes
2 answers
ASP.NET MVC 4 Deferred query execution not retrieving data from database
I am new in ASP.NET MVC 4. In my project I am using Code First technique in of EF. I want to retrieve some data from database and I used following code for this :
List ls = new List();
var lm = from m in…

Rahul More
- 615
- 3
- 13
- 41
0
votes
1 answer
Chaining Deferred Tasks with Google App Engine
I have a website I am looking to stay updated with and scrape some content from there every day. I know the site is updated manually at a certain time, and I've set cron schedules to reflect this, but since it is updated manually it could be 10 or…

Milo
- 335
- 4
- 15
0
votes
2 answers
Prioritize JavaScript Scripts: Defer Not Working
I need to prioritize scripts so jQuery, Cufon, and my .js files come before Twitter does. I've tried defer="defer" as well as placing scripts in the bottom in the order I want them to execute but all these methods aren't working.
I don't want to…

Brandon Wang
- 3,701
- 7
- 31
- 36