Questions tagged [deferred-execution]

219 questions
1
vote
1 answer

Deferred Execution on Changing Data Set

I want to use deferred execution to my advantage for updating changing data in a data grid view when the view is filtered. Currently I have an array of rows which can be filtered and the filtered data can then be searched. I use linq queries to…
MarkSchad
  • 9
  • 2
1
vote
0 answers

How to programmatically inject jquery code in chrome extension

I have a requirement of inserting following jquery code on click of an extension var…
1
vote
1 answer

What methods can I use to rearrange the order of javascript function execution?

How to rearrange javascript function execution order independent of include order. A question that assists, but doesn't completely answer my question: Can you have multiple $(document).ready(function() sections? (The answer is yes, and they execute…
Kzqai
  • 22,588
  • 25
  • 105
  • 137
1
vote
2 answers

Persistence of deferred execution linq expressions

We're trying to serialize some data, and one of the items in a collection is a "deferred execution linq statement" (actually it's the result of a Concat call on a collection). The problem is how to persist that object. It doesn't support…
user202950
1
vote
1 answer

Wordpress - How to defer parsing of Javascript to execute after DOM loads?

I am using wp_enqueue_scripts() to set my JS files and I am putting them in the footer using the last parameter But testing in gtmetrix, I still see that I need to defer parsing of Javascript. How do I defer parsing of Javascript to execute after…
developarvin
  • 4,940
  • 12
  • 54
  • 100
1
vote
2 answers

Enumerable: is "materialize" an official term?

Is "materialize" a good name for a code like this, or is there a better (and official) one? enumerable as ICollection ?? enumerable .ToArray() EDIT: I clarified the code (and its purposes) // or "MaterializeIfNecessary" public static…
Notoriousxl
  • 1,540
  • 1
  • 16
  • 27
1
vote
1 answer

defer script execution for some time

Is it possible, in javascript, to defer the execution of a self-execution function that resides at the top level closure? (For you to understand, jQuery uses this. It has a self-execution function at global scope) My objective here is to make the…
brunoais
  • 6,258
  • 8
  • 39
  • 59
1
vote
1 answer

About deferred execution of IEnumerable

In the following code, I understand the second initialization prints one "outside" and three "inside". But why does the first does not print at all, I expect it to print one "outside". DeferExecution a = new DeferExecution(); // prints…
hong pei
  • 929
  • 2
  • 13
  • 27
1
vote
3 answers

Is the order of execution of Linq the reason for this catch?

I have this function to repeat a sequence: public static List Repeat(this IEnumerable lst, int count) { if (count < 0) throw new ArgumentOutOfRangeException("count"); var ret = Enumerable.Empty(); for (var i = 0; i…
nawfal
  • 70,104
  • 56
  • 326
  • 368
1
vote
1 answer

jQuery Deferred Object and AJAX Call

I am in a situation where I need to create a table using multiple AJAX Calls. I make an ajax request and get a JSON object with an array of elements (lets say 5). Run it through a for loop and at response of each ajax request create a row using…
Atif
  • 10,623
  • 20
  • 63
  • 96
1
vote
2 answers

Attempted to read or write protected memory in a Windows Forms app

As a preface, I've looked at every StackOverflow question matched by searching for this error (25 of them or so), and none of them seemed to address the problem I'm having. I'm building up a PermissionsDialog that inherits from System.Windows.Form.…
cori
  • 8,666
  • 7
  • 45
  • 81
1
vote
0 answers

Defer MDB execution to specific Date/Time

I have a Java EE 5 MDB-driven JMS system running on WebLogic 10.3.5, for delivering announcements via Email/IM/SMS. I have a requirement to specify a Date/Time window that announcements should be delivered within. As far as I can make out there is…
retrodev
  • 2,323
  • 6
  • 24
  • 48
1
vote
4 answers

Delay a function until $ becomes available

Yahoo suggests to load scripts at the bottom of an HTML pages for performance reasons. I use HTML5 Boilerplate, which honour the rule. The problem with this approach is that jQuery is loaded at the bottom, too. If for some reason I need to write…
Paolo
  • 20,112
  • 21
  • 72
  • 113
1
vote
1 answer

Deferring JavaScript Execution In Non-WebKit Browsers

I'm trying out Ryan Fioravanti's neat-o technique for deferring JavaScript execution. It's described in slide 27 and slide 28 of his presentation at Google I/O. In WebKit browsers, it works great, providing measurably better results than just…
Trott
  • 66,479
  • 23
  • 173
  • 212
1
vote
1 answer

Delayed rendering of components outside of the viewport in Flex

I am looking for some advice in regards to getting a very quick display of our reports. The problem I am working with is I receive an XML data structure that defines our layout. The report can be anywhere from 2 to 3 pages to perhaps 20 to 30. …